Skip to content

Commit

Permalink
fix: the syntax error in merge-package.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mabels committed Dec 5, 2024
1 parent f3a13d7 commit 2e54c11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions merge-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ async function prepare(packages: PackageOptions[], {buildBase}: CommandArgs) {
await $`cd ${buildBase} && mkdir -p src/${pkg}`;
await $`cd ${buildBase} && cp -r node_modules/${pkg}/ src/${pkg}/`;
}
const files = await Promise.all(packages.map(({name}) => name).map(p => `${buildBase}/src/${p}/**/*.[jt]s`)
.map(f => glob(f))))
const files = (await Promise.all(packages.map(({name}) => name).map(p => `${buildBase}/src/${p}/**/*.[jt]s`).map(f => glob(f))))
.flat()
.filter(f => !f.endsWith(".d.ts")
.filter(f => !f.endsWith(".d.ts"));
await $`jscodeshift --parser=ts -t=./to-esm-transform.ts ${files}`
}

Expand Down

0 comments on commit 2e54c11

Please sign in to comment.