Skip to content

Commit ac0f36d

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 ac0f36d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
"LICENSE"
1919
],
2020
"scripts": {
21-
"preinstall": "npx only-allow pnpm",
2221
"build": "tsdown",
22+
"format": "biome format --write .",
23+
"lint": "biome check .",
24+
"preinstall": "npx only-allow pnpm",
2325
"prepack": "pnpm run build",
24-
"test": "vitest run",
25-
"test:watch": "vitest",
26+
"test": "pnpm -r --no-bail --aggregate-output run '/^test(:|$)/'",
2627
"test:coverage": "vitest run --coverage",
2728
"test:examples": "pnpm --filter @stackone/ai-examples test",
28-
"test:all": "pnpm run --aggregate-output '/^test(:|$)/'",
29-
"lint": "biome check .",
30-
"typecheck": "tsgo --noEmit",
29+
"test:root": "vitest run",
30+
"test:watch": "vitest",
31+
"typecheck": "pnpm -r --no-bail --aggregate-output run '/^typecheck(:|$)/'",
3132
"typecheck:examples": "pnpm --filter @stackone/ai-examples typecheck",
32-
"typecheck:all": "pnpm run --aggregate-output '/^typecheck(:|$)/'",
33-
"format": "biome format --write ."
33+
"typecheck:root": "tsgo --noEmit"
3434
},
3535
"dependencies": {
3636
"@modelcontextprotocol/sdk": "catalog:prod",

0 commit comments

Comments
 (0)