Refactor: minor changes

This commit is contained in:
SukkaW
2024-06-28 17:26:04 +08:00
parent 1d8c991baf
commit b4057ef757
2 changed files with 9 additions and 4 deletions

View File

@@ -26,9 +26,12 @@ export const buildPublic = task(import.meta.main, import.meta.path)(async (span)
.traceAsyncFn(async () => {
const trie = Trie.from(await new Fdir()
.withRelativePaths()
.exclude((dirName) => {
return dirName === 'node_modules' || dirName === 'Build' || dirName === 'public' || dirName[0] === '.';
})
.exclude((dirName) => (
dirName === 'node_modules'
|| dirName === 'Build'
|| dirName === 'public'
|| dirName[0] === '.'
))
.crawl(rootPath)
.withPromise());