Skip to content

Commit 17b8ed7

Browse files
Merge pull request #30441 from edbzn/fix-nested-esm-file-compilation
Include nested files in ESM compilation
2 parents f65c44c + 018cc49 commit 17b8ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/prepare/tsc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
5959
options: { ...compilerOptions, module: ts.ModuleKind.ES2020, declaration: false },
6060
}).emit();
6161

62-
const files = globSync(join(process.cwd(), 'dist', '*.js'));
62+
const files = globSync(join(process.cwd(), 'dist', '**/*.js'));
6363
await Promise.all(files.map((file) => move(file, file.replace('.js', '.mjs'), {})));
6464

6565
ts.createProgram({

0 commit comments

Comments
 (0)