Roadmaps / TypeScript / Setup and lab safety
Read first
Setup and lab safety
You need one laptop, the current Node.js LTS line, a package manager (pnpm is used in the milestone, npm works), Git, VS Code or another editor with TypeScript support, and TypeScript itself. Everything is free. Pin the TypeScript version in your repository and record it in each report. In Phase 3 you install both TypeScript 6 and TypeScript 7 side by side.
| Risk | Rule |
|---|---|
| Packages run code on install | Install unknown packages in a throwaway container with --ignore-scripts. |
| A codemod rewrites a whole repository | Run codemods on a clean Git branch, review the diff, and keep the commit small enough to revert. |
| Sample code with real data | Use fake orders and fake customers only. Do not paste production payloads into issues or schemas. |
| Upgrading the compiler breaks the build | Upgrade on a branch, keep the old version installed side by side, and write the rollback step before you start (Week 11). |