]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commit
feat: upgrade to typescript 5 (#255)
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 28 Apr 2023 07:21:32 +0000 (15:21 +0800)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2023 07:21:32 +0000 (15:21 +0800)
commitbe69348fa76bd54e9cb6e10845bff6ec9a35ae02
tree03f5af6f15cc4aa8cb75cbfd0436eb3aca4e6578
parent8919354750f47bbd0a9cb0506e033d40eb70a23d
feat: upgrade to typescript 5 (#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.
15 files changed:
package.json
pnpm-lock.yaml
template/base/package.json
template/config/cypress-ct/package.json
template/config/cypress/package.json
template/config/jsx/package.json
template/config/typescript/package.json
template/tsconfig/base/package.json
template/tsconfig/base/tsconfig.app.json [moved from template/tsconfig/cypress-ct/tsconfig.app.json with 81% similarity]
template/tsconfig/base/tsconfig.json
template/tsconfig/base/tsconfig.node.json
template/tsconfig/cypress/cypress/e2e/tsconfig.json
template/tsconfig/playwright/e2e/tsconfig.json
template/tsconfig/vitest/tsconfig.app.json [deleted file]
tsconfig.json