Skip to content

Commit

Permalink
fix(tsbb): Fix recursive readdir files issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 11, 2021
1 parent dfa4fe2 commit d7fc683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tsbb/src/utils/compile.ts
Expand Up @@ -26,7 +26,7 @@ export async function compile(
await FS.remove(path.resolve(process.cwd(), esm));
}
const dirToFiles = await recursiveReaddirFiles(path.dirname(entry), {
exclude: /(tsconfig.json|.d.ts|.(test|spec).(ts|tsx|js|jsx))$/,
exclude: /(tsconfig.json|\.d\.ts|\.(test|spec)\.(ts|tsx|js|jsx))$/,
});
await Promise.all(
dirToFiles.map(async (item) => {
Expand Down

0 comments on commit d7fc683

Please sign in to comment.