Skip to content

fix(tsc): point to shimmed tsc entry point to support ts 5.7 #5020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: correct version
  • Loading branch information
KazariEX committed Nov 26, 2024
commit 5a02a5e1d29dcbaa5a6eed304db9154faa21c47c
2 changes: 1 addition & 1 deletion packages/tsc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function run(tscPath = getTscPath()) {
function getTscPath() {
const version = require('typescript/package.json').version as string;

if (semver.gte(version, '5.7')) {
if (semver.gte(version, '5.7.0')) {
return require.resolve('typescript/lib/_tsc');
}
else {
Expand Down