Skip to content

Commit

Permalink
fix build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed Mar 8, 2024
1 parent 01e3376 commit ee33dd2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/npm/goodrouter/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,31 @@
import cp from "child_process";
import path from "path";

cp.spawnSync("tsc", [], { stdio: "inherit" });
cp.execSync(["tsc"].join(" "));

cp.spawnSync(
"rollup",
cp.execSync(
[
"rollup",
"--input",
path.resolve("transpiled", "main.js"),
"--file",
path.resolve("bundled", "main.js"),
"--sourcemap",
"--format",
"es",
],
{ stdio: "inherit" },
].join(" "),
{},
);

cp.spawnSync(
"rollup",
cp.execSync(
[
"rollup",
"--input",
path.resolve("transpiled", "main.js"),
"--file",
path.resolve("bundled", "main.cjs"),
"--sourcemap",
"--format",
"cjs",
],
{ stdio: "inherit" },
].join(" "),
);

0 comments on commit ee33dd2

Please sign in to comment.