492a08a079
CI / check (push) Successful in 36s
`@parking/server#lint` (tsc --noEmit) failed in CI with "Cannot find module '@parking/db' / '@parking/shared'" + a cascade of implicit-any errors. Root cause: the root turbo `lint` task had no dependsOn, but those packages expose their types via "./dist/index.d.ts" — only present after their `build` runs. In a clean CI tree lint ran before the deps were built, so tsc couldn't resolve them. Locally it passed only because a prior `dist/` happened to exist. Make `lint` depend on `^build`, exactly like `typecheck` and `test`. Verified from a fully clean tree (rm dist + .turbo + *.tsbuildinfo): `turbo run build lint` → 14/14, 0 cached. Claude-Session: https://claude.ai/code/session_01Xcm6ikLgGoCxxHrxtjkk5V
23 lines
375 B
JSON
23 lines
375 B
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"test": {
|
|
"dependsOn": ["^build"]
|
|
}
|
|
}
|
|
}
|