Skip to content

Commit 111d4f3

Browse files
authored
Merge pull request #14 from kongying-tavern/fix/typescript
Fix for typescript 5
2 parents b50c442 + 9b253cb commit 111d4f3

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,39 @@
1212
"lint": "pnpm lint-eslint && pnpm lint-stylelint",
1313
"lint-eslint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
1414
"lint-stylelint": "stylelint ./**/*.{css,sass,scss} --fix --ignore-path .gitignore",
15+
"clean": "rimraf pnpm-lock.yaml node_modules dist",
1516
"release": "semantic-release",
1617
"svgo": "svgo -rf src"
1718
},
1819
"dependencies": {
1920
"@vueuse/core": "^10.1.2",
20-
"element-plus": "^2.2.32",
21+
"element-plus": "^2.4.3",
2122
"lodash": "^4.17.21",
2223
"pinia": "^2.0.28",
2324
"tailwindcss": "^3.2.7",
24-
"vue": "^3.2.45",
25-
"vue-router": "^4.1.6"
25+
"vue": "^3.3.9",
26+
"vue-router": "^4.2.5"
2627
},
2728
"devDependencies": {
2829
"@aghap/semantic-release-gh-pages": "^2.0.9",
2930
"@rushstack/eslint-patch": "^1.1.4",
31+
"@tsconfig/node20": "^20.1.2",
3032
"@types/lodash": "^4.14.194",
31-
"@types/node": "^18.11.12",
33+
"@types/node": "^20.10.0",
3234
"@typescript-eslint/eslint-plugin": "^6.13.0",
3335
"@vitejs/plugin-vue": "^4.0.0",
3436
"@vitejs/plugin-vue-jsx": "^3.0.0",
3537
"@vue/eslint-config-prettier": "^8.0.0",
3638
"@vue/eslint-config-typescript": "^12.0.0",
37-
"@vue/tsconfig": "^0.1.3",
39+
"@vue/tsconfig": "^0.4.0",
3840
"autoprefixer": "^10.4.13",
3941
"commitizen": "^4.3.0",
4042
"cz-conventional-changelog": "^3.3.0",
4143
"eslint": "^8.54.0",
4244
"eslint-plugin-vue": "^9.18.1",
4345
"postcss": "^8.4.31",
4446
"prettier": "^3.1.0",
47+
"rimraf": "^5.0.5",
4548
"sass": "^1.58.3",
4649
"semantic-release": "^20.1.3",
4750
"stylelint": "^15.11.0",
@@ -54,7 +57,7 @@
5457
"typescript": "^5.3.2",
5558
"unplugin-auto-import": "^0.15.0",
5659
"vite": "^4.0.0",
57-
"vue-tsc": "^1.0.12"
60+
"vue-tsc": "^1.8.24"
5861
},
5962
"config": {
6063
"commitizen": {

tsconfig.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@vue/tsconfig/tsconfig.node.json",
2+
"extends": "@tsconfig/node20/tsconfig.json",
33
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"],
44
"compilerOptions": {
55
"composite": true,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@vue/tsconfig/tsconfig.web.json",
2+
"extends": "@vue/tsconfig/tsconfig.dom.json",
33
"include": ["env.d.ts", "auto-imports.d.ts", "src/**/*", "src/**/*.vue"],
44
"compilerOptions": {
55
"baseUrl": ".",

0 commit comments

Comments
 (0)