Commit 31d9b4e
authored
deps(typescript): Add TypeScript 7.0.2 alongside TS 6 via npm aliases (#538)
Add TypeScript 7.0.2 (native Go port, \~10x faster) as
`@typescript/native` for CLI use, while keeping TypeScript 6 as the
default `typescript` package for tools that need the programmatic API
(typescript-eslint, Vue/Volar).
TS 7 has no programmatic API (coming in 7.1), which breaks
`typescript-eslint` and editor tooling. The npm alias approach lets both
versions coexist: `npx tsc` runs TS 7, while ESLint/Volar resolve
`typescript` to TS 6.
Document the dual setup in AGENTS.md including the package.json aliases
and usage instructions.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Added guidance on using the project’s TypeScript tooling, including
when to use `tsc` versus `tsc6`.
* **Chores**
* Updated TypeScript development tooling and added native TypeScript
support.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 52dc7c8 commit 31d9b4e
3 files changed
Lines changed: 412 additions & 181 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
27 | 38 | | |
28 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments