33>>> withdir app [CLI] apps validate --path ..
44Validating project using pnpm...
55✅ Installing dependencies ([DURATION])
6- ⏭️ Skipped Generating types (script "typegen" not found )
7- ⏭️ Skipped Running AST-grep lint (script "lint:ast-grep" not found )
8- ⏭️ Skipped Type checking (script "typecheck" not found )
6+ ✅ Generating types ([DURATION] )
7+ ✅ Running AST-grep lint ([DURATION] )
8+ ✅ Type checking ([DURATION] )
99✅ Building ([DURATION])
1010✅ Running tests ([DURATION])
1111✅ All validation checks passed ([DURATION])
@@ -14,9 +14,9 @@ Validating project using pnpm...
1414>>> [CLI] apps validate --skip-tests
1515Validating project using pnpm...
1616✅ Installing dependencies ([DURATION])
17- ⏭️ Skipped Generating types (script "typegen" not found )
18- ⏭️ Skipped Running AST-grep lint (script "lint:ast-grep" not found )
19- ⏭️ Skipped Type checking (script "typecheck" not found )
17+ ✅ Generating types ([DURATION] )
18+ ✅ Running AST-grep lint ([DURATION] )
19+ ✅ Type checking ([DURATION] )
2020✅ Building ([DURATION])
2121⏭️ Skipped Running tests
2222✅ All validation checks passed ([DURATION])
@@ -25,9 +25,9 @@ Validating project using pnpm...
2525>>> VALIDATION_TEST_FAIL=run --if-present test musterr [CLI] apps validate
2626Validating project using pnpm...
2727✅ Installing dependencies ([DURATION])
28- ⏭️ Skipped Generating types (script "typegen" not found )
29- ⏭️ Skipped Running AST-grep lint (script "lint:ast-grep" not found )
30- ⏭️ Skipped Type checking (script "typecheck" not found )
28+ ✅ Generating types ([DURATION] )
29+ ✅ Running AST-grep lint ([DURATION] )
30+ ✅ Type checking ([DURATION] )
3131✅ Building ([DURATION])
3232Error: tests failed (duration: [DURATION])
3333❌ Running tests failed ([DURATION])
@@ -44,9 +44,9 @@ Error: validation failed
4444>>> VALIDATION_TEST_FAIL=run --if-present build musterr [CLI] apps deploy
4545Validating project using pnpm...
4646✅ Installing dependencies ([DURATION])
47- ⏭️ Skipped Generating types (script "typegen" not found )
48- ⏭️ Skipped Running AST-grep lint (script "lint:ast-grep" not found )
49- ⏭️ Skipped Type checking (script "typecheck" not found )
47+ ✅ Generating types ([DURATION] )
48+ ✅ Running AST-grep lint ([DURATION] )
49+ ✅ Type checking ([DURATION] )
5050Error: build failed (duration: [DURATION])
5151❌ Building failed ([DURATION])
5252validation failed (exit code 17)
@@ -61,40 +61,66 @@ Error: validation failed - fix errors before deploying
6161=== Commands executed in the project directory
6262>>> cat commands.log
6363pnpm install
64+ pnpm run --if-present typegen
65+ pnpm run --if-present lint:ast-grep
66+ pnpm run --if-present typecheck
6467pnpm run --if-present build
6568pnpm run --if-present test
6669pnpm install
70+ pnpm run --if-present typegen
71+ pnpm run --if-present lint:ast-grep
72+ pnpm run --if-present typecheck
6773pnpm run --if-present build
6874pnpm install
75+ pnpm run --if-present typegen
76+ pnpm run --if-present lint:ast-grep
77+ pnpm run --if-present typecheck
6978pnpm run --if-present build
7079pnpm run --if-present test
7180pnpm install
81+ pnpm run --if-present typegen
82+ pnpm run --if-present lint:ast-grep
83+ pnpm run --if-present typecheck
7284pnpm run --if-present build
7385
7486=== Warn but continue on conflicting lockfiles
7587>>> [CLI] apps validate --path conflicting
7688Warn: found conflicting package manager lockfiles; using package-lock.json and ignoring pnpm-lock.yaml
7789Validating project using npm...
7890✅ Installing dependencies ([DURATION])
79- ⏭️ Skipped Generating types (script "typegen" not found )
80- ⏭️ Skipped Running AST-grep lint (script "lint:ast-grep" not found )
81- ⏭️ Skipped Type checking (script "typecheck" not found )
82- ⏭️ Skipped Building (script "build" not found )
83- ⏭️ Skipped Running tests (script "test" not found )
91+ ✅ Generating types ([DURATION] )
92+ ✅ Running AST-grep lint ([DURATION] )
93+ ✅ Type checking ([DURATION] )
94+ ✅ Building ([DURATION] )
95+ ✅ Running tests ([DURATION] )
8496✅ All validation checks passed ([DURATION])
8597
8698=== Warn but continue on unsupported lockfiles
8799>>> [CLI] apps validate --path unsupported
88100Warn: ignoring unsupported lockfile yarn.lock; apps validation uses npm or pnpm
89101Validating project using npm...
90102✅ Installing dependencies ([DURATION])
91- ⏭️ Skipped Generating types (script "typegen" not found )
92- ⏭️ Skipped Running AST-grep lint (script "lint:ast-grep" not found )
93- ⏭️ Skipped Type checking (script "typecheck" not found )
94- ⏭️ Skipped Building (script "build" not found )
95- ⏭️ Skipped Running tests (script "test" not found )
103+ ✅ Generating types ([DURATION] )
104+ ✅ Running AST-grep lint ([DURATION] )
105+ ✅ Type checking ([DURATION] )
106+ ✅ Building ([DURATION] )
107+ ✅ Running tests ([DURATION] )
96108✅ All validation checks passed ([DURATION])
97109
98110=== Reject malformed package.json
99111>>> musterr [CLI] apps validate --path invalid
100112Error: validation error: failed to parse package.json: unexpected end of JSON input
113+
114+ === Validate npm workspace scripts without root scripts
115+ >>> grep -x workspace build ran LOG.workspaces
116+ workspace build ran
117+
118+ >>> grep -F validation failed (exit code 17) LOG.workspaces
119+ validation failed (exit code 17)
120+
121+ === Deploy rejects a failing npm workspace build
122+ >>> grep -x workspace build ran LOG.workspaces-deploy
123+ workspace build ran
124+
125+ >>> grep -F validation failed - fix errors before deploying LOG.workspaces-deploy
126+ Error: validation failed - fix errors before deploying
0 commit comments