chore: upgrade typescript to 6.0.2
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>pull/878/head
parent
c163ed152c
commit
968a1ccb40
|
|
@ -21,6 +21,7 @@
|
|||
* 当前仓库已验证可在 `Node >= 20.19.0`、`pnpm >= 8.6.0` 下运行 `vite 8.x`
|
||||
* 升级到 `vite 8` 时,`vite.config.ts` 里的分包配置不能再使用对象形式的 `manualChunks`,需要改成 `codeSplitting.groups`
|
||||
* 当前样式中仍包含旧版 IE 的星号 hack(例如 `*zoom`),为保证 `vite 8` 默认的 Lightning CSS 压缩可通过,需要开启 `css.lightningcss.errorRecovery`
|
||||
* 升级到 `TypeScript 6` 时,当前仓库仍沿用的 `moduleResolution: "node"` 与 `baseUrl` 会触发弃用报错,因此需要保留 `ignoreDeprecations: "6.0"` 作为兼容过渡
|
||||
* 依赖升级后的有效回归命令为:`pnpm build:dev`、`pnpm build:prod`、`pnpm test:e2e`
|
||||
* 当前仓库基线里,`pnpm exec eslint ./src` 为 warning-only;`pnpm ts:check` 与 `pnpm exec stylelint "./src/**/*.{vue,less,postcss,css,scss}"` 仍存在既有历史问题,不能单独作为依赖升级回归门禁
|
||||
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
"stylelint-config-standard": "^40.0.0",
|
||||
"stylelint-order": "^8.1.1",
|
||||
"terser": "^5.46.1",
|
||||
"typescript": "5.9.3",
|
||||
"typescript": "6.0.2",
|
||||
"typescript-eslint": "^8.58.1",
|
||||
"unocss": "^66.6.8",
|
||||
"unplugin-auto-import": "^21.0.0",
|
||||
|
|
|
|||
406
pnpm-lock.yaml
406
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -4,6 +4,7 @@
|
|||
"useDefineForClassFields": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"ignoreDeprecations": "6.0",
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"sourceMap": true,
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
declare module 'virtual:svg-icons-register'
|
||||
Loading…
Reference in New Issue