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: 6 diagnostics before and after.


Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-09-17 14:16:24 -07:00
co-authored by Hanzo Dev
parent 09e2bcfb4f
commit 5432201fb3
2 changed files with 15 additions and 4 deletions
+3 -2
View File
@@ -8,7 +8,7 @@
"export": "TURBOPACK=0 next build",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit --incremental false",
"typecheck": "node_modules/tsgo/bin/tsc --noEmit --incremental false",
"postinstall": "fumadocs-mdx"
},
"dependencies": {
@@ -32,7 +32,8 @@
"postcss": "^8.4.49",
"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
@@ -63,9 +63,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:
@@ -1990,6 +1993,11 @@ packages:
[email protected]:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
[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'}
@@ -4230,6 +4238,8 @@ snapshots:
[email protected]: {}
[email protected]: {}
[email protected]:
optionalDependencies:
'@typescript/typescript-aix-ppc64': 7.0.2