Typecheck on the native compiler, keep 6 for the tools

typescript 7.0.2 is the native compiler and exports no JavaScript API, and
next below 16.3 wants typescript/lib/typescript.js, which the native compiler
does not ship: the check fails and next shells out to `pnpm add typescript`
mid-build, which a frozen lockfile or an offline runner turns into a failed
build. So 7.0.2 comes in aliased as tsgo and does the typechecking, and
typescript stays on the 6 line for next. The docs site: 10 diagnostics before and after.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-09-17 00:39:33 -07:00
co-authored by Hanzo Dev
parent 5e4e7ae274
commit 05fdd58377
2 changed files with 15 additions and 4 deletions
+3 -2
View File
@@ -8,7 +8,7 @@
"export": "docs-mdx && next build",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit --incremental false",
"typecheck": "node_modules/tsgo/bin/tsc --noEmit --incremental false",
"postinstall": "docs-mdx"
},
"dependencies": {
@@ -31,7 +31,8 @@
"@types/react-dom": "^19.2.3",
"rehype-pretty-code": "^0.14.1",
"shiki": "^1.27.2",
"typescript": "7.0.2"
"tsgo": "npm:typescript@7.0.2",
"typescript": "6.0.3"
},
"packageManager": "[email protected]"
}
+12 -2
View File
@@ -60,9 +60,12 @@ importers:
shiki:
specifier: ^1.27.2
version: 1.29.2
tsgo:
specifier: npm:[email protected]
version: [email protected]
typescript:
specifier: 7.0.2
version: 7.0.2
specifier: 6.0.3
version: 6.0.3
packages:
@@ -3540,6 +3543,11 @@ packages:
resolution: {integrity: sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==}
engines: {node: '>=8'}
[email protected]:
resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
engines: {node: '>=14.17'}
hasBin: true
[email protected]:
resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==}
engines: {node: '>=16.20.0'}
@@ -8284,6 +8292,8 @@ snapshots:
[email protected]: {}
[email protected]: {}
[email protected]:
optionalDependencies:
'@typescript/typescript-aix-ppc64': 7.0.2