Skip to content

Commit d7fc683

Browse files
committedSep 11, 2021
fix(tsbb): Fix recursive readdir files issue.
1 parent dfa4fe2 commit d7fc683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/tsbb/src/utils/compile.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function compile(
2626
await FS.remove(path.resolve(process.cwd(), esm));
2727
}
2828
const dirToFiles = await recursiveReaddirFiles(path.dirname(entry), {
29-
exclude: /(tsconfig.json|.d.ts|.(test|spec).(ts|tsx|js|jsx))$/,
29+
exclude: /(tsconfig.json|\.d\.ts|\.(test|spec)\.(ts|tsx|js|jsx))$/,
3030
});
3131
await Promise.all(
3232
dirToFiles.map(async (item) => {

0 commit comments

Comments
 (0)
Please sign in to comment.