Skip to content

Commit be69348

Browse files
authored
feat: upgrade to typescript 5 (vuejs#255)
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.2. 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 the barebone TypeScript template have 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 be69348

File tree

15 files changed

+846
-875
lines changed

15 files changed

+846
-875
lines changed

package.json

Lines changed: 4 additions & 3 deletions
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",
40-
"@vue/create-eslint-config": "^0.2.0",
41-
"@vue/tsconfig": "^0.1.3",
42-
"esbuild": "^0.16.14",
41+
"@vue/create-eslint-config": "^0.2.1",
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy