Skip to content

Commit 3a57e57

Browse files
committed
fix(ai-sandbox): make test:types wait for package build
tests/testkit-subpath.test.ts imports @tanstack/ai-sandbox/testkit, which resolves through package exports to dist. test:types only depended on ^build, so tsc could run before this package's build and fail with TS2307 when dist was missing. That race failed CI while local runs with a warm dist stayed green.
1 parent d1ed540 commit 3a57e57

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/ai-sandbox/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@
5454
"test:lib:dev": "pnpm test:lib --watch",
5555
"test:types": "tsc"
5656
},
57+
"nx": {
58+
"targets": {
59+
"test:types": {
60+
"dependsOn": [
61+
"build",
62+
"^build"
63+
]
64+
}
65+
}
66+
},
5767
"dependencies": {
5868
"@modelcontextprotocol/sdk": "^1.29.0"
5969
},

0 commit comments

Comments
 (0)