Skip to content

Commit faa10e8

Browse files
Narratorclaude
andcommitted
ci(test-fixtures): override typecheck target for styling fixture apps
The Nx @nx/js/typescript plugin auto-infers `tsc --build --emitDeclarationOnly` as the typecheck target for any project with a tsconfig.json. The Tailwind and styled-components fixture apps have `noEmit: true` (they are Vite apps, not libraries), so the inferred command fails with TS5069. Override the inferred target with `tsc --noEmit` via the package.json `nx` field. Type errors are still surfaced; the apps just no longer try to emit declaration files they don't need. Pre-existing failure on the base branch (feat/sprint-2734) — surfaced by CI on this PR's merge gate. Reviewer-pushed fix to unblock the merge. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 85b10be commit faa10e8

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

packages/domscribe-test-fixtures/styling/styled-app/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
"build": "vite build",
88
"preview": "vite preview --port 4802 --strictPort"
99
},
10+
"nx": {
11+
"targets": {
12+
"typecheck": {
13+
"executor": "nx:run-commands",
14+
"options": {
15+
"command": "tsc --noEmit",
16+
"cwd": "packages/domscribe-test-fixtures/styling/styled-app"
17+
}
18+
}
19+
}
20+
},
1021
"dependencies": {
1122
"react": "^18.3.1",
1223
"react-dom": "^18.3.1",

packages/domscribe-test-fixtures/styling/tailwind-app/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
"build": "vite build",
88
"preview": "vite preview --port 4801 --strictPort"
99
},
10+
"nx": {
11+
"targets": {
12+
"typecheck": {
13+
"executor": "nx:run-commands",
14+
"options": {
15+
"command": "tsc --noEmit",
16+
"cwd": "packages/domscribe-test-fixtures/styling/tailwind-app"
17+
}
18+
}
19+
}
20+
},
1021
"dependencies": {
1122
"react": "^18.3.1",
1223
"react-dom": "^18.3.1"

0 commit comments

Comments
 (0)