Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Mar 6, 2024
1 parent 7952172 commit 4136bee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"vite-ecosystem-ci:test": "pnpm playwright:integration vite && pnpm clean:integration",
"changeset": "changeset",
"changeset:version": "changeset version && node ./scripts/remove-prerelease-changelogs.mjs && node ./scripts/patchup-version.mjs",
"changeset:release": "pnpm build --tsc --publish && changeset publish",
"changeset:release": "pnpm build --tsc && changeset publish",
"version": "node ./scripts/version.js",
"version:experimental": "node ./scripts/version.js experimental",
"watch": "rollup -c --watch --watch.onEnd=\"node scripts/copy-build-to-dist.mjs\""
Expand Down
5 changes: 2 additions & 3 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { spawn } from "cross-spawn";

const args = process.argv.slice(2);
const publish = process.env.CI || args.includes("--publish");
const tsc = process.env.CI || args.includes("--tsc") || publish;
const tsc = process.env.CI || args.includes("--tsc");

exec("pnpm", ["rollup", "-c"])
.then(() => exec("pnpm", ["--recursive", "tsc", "-b"]))
.then(() => tsc && exec("pnpm", ["--recursive", "tsc", "-b"]))
.then(() =>
exec("node", ["scripts/copy-build-to-dist.mjs", ...(tsc ? ["--tsc"] : [])])
)
Expand Down

0 comments on commit 4136bee

Please sign in to comment.