Skip to content
This repository was archived by the owner on Aug 20, 2026. It is now read-only.

Commit 4006e94

Browse files
committed
chore: adopt turbo for task orchestration
1 parent 4285662 commit 4006e94

3 files changed

Lines changed: 118 additions & 7 deletions

File tree

package.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,23 @@
4747
"node": ">=20"
4848
},
4949
"scripts": {
50-
"build": "tsdown && node scripts/generate-json-schemas.mjs",
50+
"build": "turbo run _build",
51+
"_build": "tsdown && node scripts/generate-json-schemas.mjs",
5152
"prepublishOnly": "pnpm run lint && pnpm run typecheck && pnpm run build && publint && attw --pack",
52-
"lint": "eslint . --fix --cache --max-warnings 0",
53-
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.node.json",
54-
"test": "vitest run --project unit",
55-
"test:workers": "vitest run --config vitest.workers.config.ts",
53+
"lint": "turbo run _lint",
54+
"_lint": "eslint . --fix --cache --max-warnings 0",
55+
"typecheck": "turbo run _typecheck _typecheck:node",
56+
"_typecheck": "tsc -p tsconfig.json",
57+
"_typecheck:node": "tsc -p tsconfig.node.json",
58+
"test": "turbo run _test",
59+
"_test": "vitest run --project unit",
60+
"test:workers": "turbo run _test:workers",
61+
"_test:workers": "vitest run --config vitest.workers.config.ts",
5662
"test:watch": "vitest --project unit",
57-
"test:coverage": "vitest run --project unit --coverage",
58-
"test:smoke": "pnpm run build && vitest run --project smoke",
63+
"test:coverage": "turbo run _test:coverage",
64+
"_test:coverage": "vitest run --project unit --coverage",
65+
"test:smoke": "turbo run _test:smoke",
66+
"_test:smoke": "pnpm run build && vitest run --project smoke",
5967
"prepare": "husky",
6068
"release": "semantic-release"
6169
},
@@ -93,6 +101,7 @@
93101
"publint": "^0.3.21",
94102
"semantic-release": "^25.0.8",
95103
"tsdown": "^0.22.13",
104+
"turbo": "^2.10.8",
96105
"typescript": "^6.0.3",
97106
"typescript-eslint": "^8.65.0",
98107
"vitest": "^4.1.10"

pnpm-lock.yaml

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://turborepo.com/schema.json",
3+
"globalDependencies": ["pnpm-lock.yaml"],
4+
"tasks": {
5+
"_typecheck": {
6+
"inputs": ["$TURBO_DEFAULT$", "tsconfig.json"],
7+
"outputs": []
8+
},
9+
"_typecheck:node": {
10+
"inputs": ["$TURBO_DEFAULT$", "tsconfig.node.json"],
11+
"outputs": []
12+
},
13+
"_lint": {
14+
"inputs": ["$TURBO_DEFAULT$", "eslint.config.ts"],
15+
"outputs": [".eslintcache"]
16+
},
17+
"_test": {
18+
"inputs": ["src/**", "vitest.config.ts", "vitest.unit.config.ts", "package.json"],
19+
"outputs": []
20+
},
21+
"_test:workers": {
22+
"inputs": ["src/**", "test/workers/**", "vitest.workers.config.ts", "wrangler.jsonc", "package.json"],
23+
"outputs": []
24+
},
25+
"_test:coverage": {
26+
"inputs": ["src/**", "vitest.config.ts", "vitest.unit.config.ts", "package.json"],
27+
"outputs": ["coverage/**"]
28+
},
29+
"_test:smoke": {
30+
"inputs": ["src/**", "tsdown.config.ts", "scripts/generate-json-schemas.mjs", "package.json", "vitest.config.ts", "vitest.smoke.config.ts", "test/smoke.test.mjs"],
31+
"outputs": []
32+
},
33+
"_build": {
34+
"inputs": ["src/**", "tsdown.config.ts", "scripts/generate-json-schemas.mjs", "package.json"],
35+
"outputs": ["dist/**", "schemas/**"]
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)