yggdrasil/libs/package.json
xfy 1935321da1
Some checks failed
CI / check (push) Has been cancelled
CI / build (push) Has been cancelled
build(deps): 升级 TypeScript 至 7.0.2(Go 原生编译器)
TypeScript 7 已将 Go 重写版(代号 Corsa)合并进主线 typescript 包,
npm latest 即 7.0.2,无需再依赖 @typescript/native-preview 预览包。

本项目单点改动:libs/package.json devDependencies.typescript ^6.0.3 -> ^7.0.2
(6 个子包均从 workspace 根继承版本,无需逐包改动)。

兼容性核对(TS 7 破坏性变更 vs tsconfig.base.json):
- target ES2020 / module ESNext / moduleResolution bundler 均在支持范围
- 未使用 baseUrl / node10 / es5 等 TS 7 移除的选项
- esModuleInterop=true / strict=true 满足 TS 7 的新下限要求
- css 副作用导入已有 css.d.ts 声明,满足 noUncheckedSideEffectImports 新默认值

验证:typecheck(6 包 tsc --noEmit) + build(6 包 tsc && vite build)
+ test(187 个 vitest 用例)全部通过。
2026-07-16 13:36:54 +08:00

24 lines
508 B
JSON

{
"name": "yggdrasil-workspace",
"private": true,
"type": "module",
"scripts": {
"build": "pnpm -r run build",
"test": "pnpm -r run test",
"typecheck": "pnpm -r run typecheck",
"lint": "biome check .",
"format": "biome format --write ."
},
"devDependencies": {
"@biomejs/biome": "^2.5.3",
"happy-dom": "^20.10.6",
"typescript": "^7.0.2",
"vite": "^8.1.3",
"vitest": "^4.1.10"
},
"packageManager": "pnpm@11.8.0",
"engines": {
"node": ">=20"
}
}