Skip to content

Commit 4453dd5

Browse files
committed
feat: add -r and --no-bail flags to aggregate commands
Reorganise test and typecheck commands: - test: Run all tests across workspace (was test:all) - test:root: Run tests in root package only (was test) - test:examples: Run tests in examples package - typecheck: Run all typechecks across workspace (was typecheck:all) - typecheck:root: Run typecheck in root package only (was typecheck) - typecheck:examples: Run typecheck in examples package All aggregate commands use: - -r: Run recursively in all workspace packages - --no-bail: Continue running even if some fail - --aggregate-output: Group output by script for readability This makes the default commands run everything, whilst still allowing targeted execution with :root and :examples suffixes.
1 parent 3291925 commit 4453dd5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
"preinstall": "npx only-allow pnpm",
2222
"build": "tsdown",
2323
"prepack": "pnpm run build",
24-
"test": "vitest run",
24+
"test:root": "vitest run",
2525
"test:watch": "vitest",
26-
"test:coverage": "vitest run --coverage",
2726
"test:examples": "pnpm --filter @stackone/ai-examples test",
28-
"test:all": "pnpm run --aggregate-output '/^test(:|$)/'",
27+
"test": "pnpm -r --no-bail --aggregate-output run '/^test(:|$)/'",
28+
"test:coverage": "vitest run --coverage",
2929
"lint": "biome check .",
30-
"typecheck": "tsgo --noEmit",
30+
"typecheck": "pnpm -r --no-bail --aggregate-output run '/^typecheck(:|$)/'",
31+
"typecheck:root": "tsgo --noEmit",
3132
"typecheck:examples": "pnpm --filter @stackone/ai-examples typecheck",
32-
"typecheck:all": "pnpm run --aggregate-output '/^typecheck(:|$)/'",
3333
"format": "biome format --write ."
3434
},
3535
"dependencies": {

0 commit comments

Comments
 (0)