Running 7.0 beside 6.0
However, as we mentioned above, the stable release of TypeScript 7.0 will be published under the typescript package and will use the tsc entry point. [1]
Given this, we have made it a priority to ensure TypeScript can be run side-by-side with TypeScript 6.0 for the foreseeable future without any conflicts around “which tsc is which?” [2]
This package provides an executable named tsc6, so that if needed, you can install TypeScript 7.0 (which ships its own tsc binary) side-by-side without naming conflicts. [3]
The new package also re-exports the TypeScript 6.0 API, so that you can use tsc for TypeScript 7, while other tooling can continue to rely on 6.0. [4]
What is not stable yet
Even though 7.0 RC is close to production-ready, we won’t have a stable programmatic API available until at least several months from now with TypeScript 7.1. [5]
How type-checking is parallelized
To enable parallelization while avoiding these pitfalls, TypeScript 7.0 creates a fixed number of type-checker workers with their own view of the world. [6]
These type-checking workers may end up duplicating some common work, but given the same input files, they will always divide them identically and produce the same results. [7]
You may find that increasing this number can further speed up builds on larger codebases where typical machines have more CPU cores, but will typically come at the cost of increased memory usage. [8]
Sources
- The TypeScript source says: However, as we mentioned above, the stable release of TypeScript 7.0 will be published under the typescript package and will use the tsc entry point. Announcing TypeScript 7.0 RC
- The TypeScript source says: Given this, we have made it a priority to ensure TypeScript can be run side-by-side with TypeScript 6.0 for the foreseeable future without any conflicts around “which tsc is which?” Announcing TypeScript 7.0 RC
- The TypeScript source says: This package provides an executable named tsc6, so that if needed, you can install TypeScript 7.0 (which ships its own tsc binary) side-by-side without naming conflicts. Announcing TypeScript 7.0 RC
- The TypeScript source says: The new package also re-exports the TypeScript 6.0 API, so that you can use tsc for TypeScript 7, while other tooling can continue to rely on 6.0. Announcing TypeScript 7.0 RC
- The TypeScript source says: Even though 7.0 RC is close to production-ready, we won’t have a stable programmatic API available until at least several months from now with TypeScript 7.1. Announcing TypeScript 7.0 RC
- The TypeScript source says: To enable parallelization while avoiding these pitfalls, TypeScript 7.0 creates a fixed number of type-checker workers with their own view of the world. Announcing TypeScript 7.0 RC
- The TypeScript source says: These type-checking workers may end up duplicating some common work, but given the same input files, they will always divide them identically and produce the same results. Announcing TypeScript 7.0 RC
- The TypeScript source says: You may find that increasing this number can further speed up builds on larger codebases where typical machines have more CPU cores, but will typically come at the cost of increased memory usage. Announcing TypeScript 7.0 RC