Skip to content

Commit

Permalink
pnpm run build should only run turbo build
Browse files Browse the repository at this point in the history
We apply `--filter` flags to the `pnpm build` command when running in
CI. By introducing the second script via `&&` the filters aren't applied
correctly.

Using a `postbuild` should hopefully fix that.
  • Loading branch information
RobinMalfait committed Aug 9, 2024
1 parent c5a4909 commit 5e9fd4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"scripts": {
"format": "prettier --write .",
"lint": "prettier --check . && turbo lint",
"build": "turbo build --filter=!./playgrounds/* && node ./scripts/pack-packages.mjs",
"build": "turbo build --filter=!./playgrounds/*",
"postbuild": "node ./scripts/pack-packages.mjs",
"dev": "turbo dev --filter=!./playgrounds/*",
"test": "cargo test && vitest run",
"test:integrations": "vitest --root=./integrations --no-file-parallelism",
Expand Down

0 comments on commit 5e9fd4f

Please sign in to comment.