Skip to content

Commit d25ccfe

Browse files
zrosenbauerclaude
andcommitted
fix(repo): set proper turbo deps for test tasks
Root test scripts bypassed turbo entirely (vitest run), so workspace packages were never built before their dependents' tests tried to import from dist/. Additionally, examples/ used workspace:* deps but were not in the pnpm workspace. - Route root test scripts through turbo run test - Change test.dependsOn from ^build to build so each package builds itself before running tests - Add examples/* to pnpm-workspace.yaml Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 02a4303 commit d25ccfe

File tree

4 files changed

+239
-5
lines changed

4 files changed

+239
-5
lines changed

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"lint:fix": "oxlint --fix --ignore-pattern node_modules",
1414
"build": "turbo run build",
1515
"dev": "turbo run dev",
16-
"test": "vitest run",
17-
"test:coverage": "vitest run --coverage",
18-
"test:watch": "vitest",
16+
"test": "turbo run test",
17+
"test:coverage": "turbo run build && vitest run --coverage",
18+
"test:watch": "turbo run build && vitest",
1919
"typecheck": "turbo run typecheck",
2020
"check": "turbo run typecheck && pnpm lint && pnpm format",
2121
"changeset": "changeset",
@@ -25,13 +25,16 @@
2525
"devDependencies": {
2626
"@changesets/cli": "^2.29.8",
2727
"@typescript/native-preview": "7.0.0-dev.20260302.1",
28+
"@vitest/coverage-v8": "catalog:",
2829
"eslint-plugin-functional": "^9.0.4",
2930
"eslint-plugin-jsdoc": "^62.7.1",
3031
"eslint-plugin-security": "^4.0.0",
32+
"laufen": "^1.0.0",
3133
"oxfmt": "^0.36.0",
3234
"oxlint": "^1.51.0",
35+
"rimraf": "^6.1.3",
36+
"ts-pattern": "catalog:",
3337
"turbo": "^2.8.12",
34-
"@vitest/coverage-v8": "catalog:",
3538
"vitest": "catalog:"
3639
},
3740
"packageManager": "pnpm@10.30.1"

0 commit comments

Comments
 (0)