Skip to content

Commit 792dc17

Browse files
committed
feat: upgrade to typescript 5
This is the minimal upgrade to TypeScript 5. I tried to upgrade only the necessary dependencies and keep the changes to a minimum. Notable changes: - `@vue/tsconfig` upgraded from 0.1.3 to 0.3.0. Note that according to semver, it contains breaking changes. See <https://github.com/vuejs/tsconfig#migrating-from-typescript--50> for more details. - Vite, `vue-tsc`, and Cypress MUST be upgraded to the latest version to support TypeScript 5. - The `tsconfig` files in barebone TypeScript template has been updated. Previously, it was `tsconfig.json` + `tsconfig.node.json`, where `tsconfig.json` contains the configuration for the web app in the `src/` folder and a reference to the `tsconfig.node.json`. Now it is `tsconfig.json` + `tsconfig.app.json` + `tsconfig.node.json`, where `tsconfig.json` contains only references to the other 2 configs. This is to align it with the `tsconfig` files in the other templates, so that users can easily switch between templates. It also avoids some edge cases in solution-style tsconfigs.
1 parent 8919354 commit 792dc17

File tree

15 files changed

+839
-872
lines changed

15 files changed

+839
-872
lines changed

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@
3434
},
3535
"homepage": "https://github.com/vuejs/create-vue#readme",
3636
"devDependencies": {
37+
"@tsconfig/node18": "^2.0.0",
3738
"@types/eslint": "^8.21.1",
3839
"@types/node": "^18.14.2",
3940
"@types/prompts": "^2.4.2",
4041
"@vue/create-eslint-config": "^0.2.0",
41-
"@vue/tsconfig": "^0.1.3",
42-
"esbuild": "^0.16.14",
42+
"@vue/tsconfig": "^0.3.2",
43+
"esbuild": "^0.17.18",
4344
"esbuild-plugin-license": "^1.2.2",
4445
"husky": "^8.0.3",
4546
"kolorist": "^1.7.0",

0 commit comments

Comments
 (0)