fix(ci): lint must depend on ^build (resolve workspace dep types)
CI / check (push) Successful in 36s
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
This commit is contained in:
+3
-1
@@ -9,7 +9,9 @@
|
||||
"cache": false,
|
||||
"persistent": true
|
||||
},
|
||||
"lint": {},
|
||||
"lint": {
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"typecheck": {
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user