chore: generate
This commit is contained in:
parent
4597c687fa
commit
be8fee5c2b
1 changed files with 10 additions and 8 deletions
|
|
@ -225,7 +225,9 @@ export const fffLayer = Layer.effect(
|
||||||
score: found.value.scores[index]?.total ?? 0,
|
score: found.value.scores[index]?.total ?? 0,
|
||||||
}))
|
}))
|
||||||
})()
|
})()
|
||||||
return items.sort((a, b) => b.score - a.score || a.path.length - b.path.length).map((item) => {
|
return items
|
||||||
|
.sort((a, b) => b.score - a.score || a.path.length - b.path.length)
|
||||||
|
.map((item) => {
|
||||||
const relative = item.path.replaceAll("\\", "/").replace(/\/$/, "")
|
const relative = item.path.replaceAll("\\", "/").replace(/\/$/, "")
|
||||||
const absolute = path.resolve(location.directory, relative)
|
const absolute = path.resolve(location.directory, relative)
|
||||||
return new FileSystem.Entry({
|
return new FileSystem.Entry({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue