Skip to content

Commit

Permalink
frontend: Upgrade to typescript v5
Browse files Browse the repository at this point in the history
Also updates other dependencies to be compatible. Includes a patch to @vuelidate/core to get the types correctly. This patch should get removed when vuelidate/vuelidate#1184 is resolved.
  • Loading branch information
manuelwedler committed May 23, 2023
1 parent 8946198 commit 29d844b
Show file tree
Hide file tree
Showing 4 changed files with 640 additions and 194 deletions.
16 changes: 9 additions & 7 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint:fix": "yarn check-types; yarn eslint:fix",
"test:unit": "vitest run --dir=./tests/unit",
"test:coverage": "vitest run --dir=./tests --coverage",
"postinstall": "yarn generate-types && yarn configure"
"postinstall": "yarn patch-package && yarn generate-types && yarn configure"
},
"dependencies": {
"@beamer-bridge/deployments": "2.0.0",
Expand All @@ -33,19 +33,19 @@
"autoprefixer": "^10",
"ethers": "^5.5.1",
"lodash.debounce": "^4.0.8",
"pinia": "^2.0.13",
"pinia": "^2.0.34",
"pinia-plugin-persistedstate": "^1.5.2",
"postcss": "^8.4",
"tailwindcss": "^3",
"ua-parser-js": "^1.0.33",
"vue": "^3.2.31",
"vue": "^3.3.0",
"vue-router": "^4.0.0-0",
"vue-toastification": "^2.0.0-rc.5",
"vue3-popper": "^1.5.0"
},
"devDependencies": {
"@namics/stylelint-bem": "^7.0.0",
"@pinia/testing": "^0.0.12",
"@pinia/testing": "^0.0.16",
"@rushstack/eslint-patch": "^1.1.1",
"@typechain/ethers-v5": "^10.1.1",
"@types/lodash.debounce": "^4.0.7",
Expand All @@ -54,25 +54,27 @@
"@types/vuelidate": "^0.7.15",
"@vitejs/plugin-vue": "^4.2.1",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^10.0.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/test-utils": "^2.2.1",
"ajv": "^8.11.0",
"ajv-formats": "^2.1.1",
"c8": "^7.11.0",
"eslint": "^8.12.0",
"eslint-import-resolver-typescript": "^2.7.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-vue": "^8.5.0",
"jsdom": "^22.0.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"patch-package": "^7.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.6.0",
"prettier-plugin-tailwindcss": "^0.2.7",
"sass": "^1.49.9",
"ts-node": "^10.7.0",
"typechain": "^8.1.1",
"typescript": "~4.5.5",
"typescript": "~5.0.4",
"vite": "^4.3.4",
"vitest": "^0.31.0"
},
Expand Down
12 changes: 12 additions & 0 deletions frontend/patches/@vuelidate+core+2.0.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/@vuelidate/core/package.json b/node_modules/@vuelidate/core/package.json
index ff0878e..f7bc1e0 100644
--- a/node_modules/@vuelidate/core/package.json
+++ b/node_modules/@vuelidate/core/package.json
@@ -19,6 +19,7 @@
],
"exports": {
".": {
+ "types": "./index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand Down

0 comments on commit 29d844b

Please sign in to comment.