Skip to content

Commit

Permalink
Fix prepare bundle on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Sep 24, 2022
1 parent e10b790 commit bdf8ee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/prepare/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
const tsConfigExists = await fs.pathExists(tsConfigPath);
await Promise.all([
build({
entry: entries.map((e: string) => join(cwd, e)),
entry: entries,
watch,
...(tsConfigExists ? { tsconfig: tsConfigPath } : {}),
outDir: join(process.cwd(), 'dist'),
Expand Down Expand Up @@ -101,7 +101,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
},
}),
build({
entry: entries.map((e: string) => join(cwd, e)),
entry: entries,
watch,
outDir: join(process.cwd(), 'dist'),
...(tsConfigExists ? { tsconfig: tsConfigPath } : {}),
Expand Down Expand Up @@ -136,7 +136,7 @@ run({ cwd, flags }).catch((err: unknown) => {
// Seems to have something to do with running JSON.parse() on binary / base64 encoded sourcemaps
// in @cspotcode/source-map-support
if (err instanceof Error) {
console.error(err.message);
console.error(err);
}
process.exit(1);
});

0 comments on commit bdf8ee7

Please sign in to comment.