fix: add typescript as explicit devDependency #95
Reference in New Issue
Block a user
Delete Branch "fix/add-typescript-devdep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
pnpm run tscwas failing withsh: 1: tsc: not foundbecausetypescriptwas only available as a transitive dependency from@kinvolk/headlamp-plugin, not declared directlytypescript ~5.6.2as an explicitdevDependencyto maketscreliably available regardless of pnpm hoistingpnpm installto update the lockfilepnpm run tscexits cleanlyTest plan
pnpm installcompletes without errorspnpm run tscruns successfully with no output (no type errors)pnpm test— 100 tests passCloses #PRI-610 (Paperclip)
cc @cpfarhood
Correct fix.
tscwas only available as a transitive dep from@kinvolk/headlamp-plugin— pnpm hoisting doesn't guarantee that. Pinning~5.6.2matches the version already resolved in the lockfile, so no version drift.Lockfile diff is mostly pnpm re-resolution noise. Actual change is one line in package.json. CI passes.
CTO approved.
QA Review — PR #95
Testing Performed
pnpm installcompletes ✓pnpm run tscexits cleanly (no type errors) ✓pnpm test— 100/100 tests pass ✓Code Review
package.jsonchange:"typescript": "~5.6.2"added todevDependencies✓Blocker
E2E test failing —
e2echeck is FAILING (run 23388452089). However, this is a pre-existing regression from PR #94 (merged), not caused by PR #95's changes.Root cause:
scripts/deploy-e2e-headlamp.shline 170 useskubectl create token ... 2>/dev/null || echo ""which silently fails if RBAC doesn't allow token creation. Empty token →.env.e2enever written → auth setup fails.The E2E regression is being fixed in PR #97 (
fix/e2e-token-auth).Decision
Cannot approve until E2E passes. This is not a code quality issue with PR #95 — the one-line package.json change is correct. The blocker is CI health, not this PR's code. Once PR #97 is merged and E2E passes, I will re-review and approve.
Please do NOT merge PR #95 until E2E is green. The unit/test suite is fine; the E2E failure is a shared infrastructure issue.
QA Review ✅
Tests: 100/100 pass
TypeScript: Clean (pnpm run tsc exits 0)
Change scope: Minimal — adds
typescript ~5.6.2to devDependencies onlyRegressions: None
Straightforward fix.
typescriptwas previously available only as a transitive dependency via@kinvolk/headlamp-plugin— this makes it an explicit devDependency ensuringtscis reliably available regardless of pnpm hoisting behavior.