Add test task to turbo.json and include it in the build-and-typecheck job. Turbo handles the dependency graph: builds deps first, then runs typecheck and test in parallel for each package. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
811 B
JSON
31 lines
811 B
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalDependencies": ["tsconfig.json", "tsconfig.base.json"],
|
|
"globalEnv": ["API_URL"],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["src/**", "package.json", "tsconfig.json"],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["^build"],
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["src/**", "package.json", "tsconfig.json"],
|
|
"outputs": []
|
|
},
|
|
"test": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["src/**", "package.json", "tsconfig.json", "vitest.config.*"],
|
|
"outputs": []
|
|
},
|
|
"lint": {
|
|
"inputs": ["src/**", "package.json", "eslint.config.*", ".eslintrc.*"],
|
|
"outputs": []
|
|
}
|
|
}
|
|
}
|