build: upgrade typescript (#4991)

Upgraded to 5.8 and bumped all type definitions.
Enabled erasable syntax only flag and got rid from one case in
expression editor.
This commit is contained in:
Bogdan Chadkin
2025-03-13 11:21:00 +07:00
committed by GitHub
parent 8b526dc7e9
commit dd08852d43
25 changed files with 339 additions and 336 deletions

View File

@ -255,8 +255,10 @@ const scopeCompletionSource: CompletionSource = (context) => {
*/
class VariableWidget extends WidgetType {
constructor(readonly text: string) {
text: string;
constructor(text: string) {
super();
this.text = text;
}
toDOM(): HTMLElement {
const span = document.createElement("span");

View File

@ -125,7 +125,7 @@
"devDependencies": {
"@remix-run/dev": "^2.16.0",
"@types/debug": "^4.1.12",
"@types/dom-navigation": "^1.0.4",
"@types/dom-navigation": "^1.0.5",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@webstudio-is/tsconfig": "workspace:*",
@ -133,8 +133,8 @@
"html-tags": "^4.0.0",
"react-router-dom": "^6.30.0",
"react-test-renderer": "18.3.0-canary-14898b6a9-20240318",
"type-fest": "^4.32.0",
"typescript": "5.7.3",
"type-fest": "^4.37.0",
"typescript": "5.8.2",
"vite": "^5.4.11",
"vitest": "^3.0.8"
},

View File

@ -35,7 +35,7 @@
"devDependencies": {
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.7.3"
"typescript": "5.8.2"
},
"engines": {
"node": ">=20.0.0"

View File

@ -36,7 +36,7 @@
"devDependencies": {
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.7.3"
"typescript": "5.8.2"
},
"engines": {
"node": ">=20.0.0"

View File

@ -35,7 +35,7 @@
"devDependencies": {
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.7.3"
"typescript": "5.8.2"
},
"engines": {
"node": ">=20.0.0"

View File

@ -26,7 +26,7 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"prettier": "3.5.3",
"typescript": "5.7.3",
"typescript": "5.8.2",
"vite": "^5.4.11",
"webstudio": "workspace:*"
},

View File

@ -26,7 +26,7 @@
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"prettier": "3.5.3",
"typescript": "5.7.3",
"typescript": "5.8.2",
"vite": "^5.4.11",
"webstudio": "workspace:*"
},

View File

@ -51,9 +51,9 @@
"@remix-run/dev": "2.16.0",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.7.3",
"fast-glob": "^3.3.2",
"typescript": "5.8.2",
"vite": "^5.4.11",
"wrangler": "^3.63.2",
"fast-glob": "^3.3.2"
"wrangler": "^3.63.2"
}
}

View File

@ -34,7 +34,7 @@
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"fast-glob": "^3.3.2",
"typescript": "5.7.3",
"typescript": "5.8.2",
"webstudio": "workspace:*"
},
"engines": {

View File

@ -37,7 +37,7 @@
"@storybook/react": "^8.6.4",
"@storybook/react-vite": "^8.6.4",
"@types/css-tree": "^2.3.1",
"@types/node": "^22.10.7",
"@types/node": "^22.13.10",
"@types/react": "^18.2.70",
"esbuild": "^0.25.1",
"eslint": "^9.22.0",
@ -50,7 +50,7 @@
"simple-git-hooks": "^2.11.1",
"storybook": "^8.6.4",
"tsx": "^4.19.3",
"typescript": "5.7.3",
"typescript": "5.8.2",
"typescript-eslint": "^8.26.1",
"vite": "^5.4.11"
},

View File

@ -15,7 +15,7 @@
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*",
"type-fest": "^4.32.0"
"type-fest": "^4.37.0"
},
"exports": {
".": {

View File

@ -26,7 +26,7 @@
"@remix-run/dev": "2.16.0",
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.7.3",
"typescript": "5.8.2",
"vite": "^5.4.11"
},
"engines": {

View File

@ -26,7 +26,7 @@
"devDependencies": {
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"typescript": "5.7.3"
"typescript": "5.8.2"
},
"engines": {
"node": ">=20.0.0"

View File

@ -22,7 +22,7 @@
"@types/react": "^18.2.70",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "5.7.3",
"typescript": "5.8.2",
"vite": "^5.4.11"
},
"engines": {

View File

@ -11,7 +11,7 @@
"dependencies": {
"@webstudio-is/project": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"zod": "^3.22.4"
},
"devDependencies": {

View File

@ -65,7 +65,7 @@
"match-sorter": "^8.0.0",
"react-hot-toast": "^2.5.1",
"token-transformer": "^0.0.28",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"use-debounce": "^10.0.4",
"warn-once": "^0.1.1"
},

View File

@ -15,7 +15,7 @@
"@webstudio-is/sdk": "workspace:*",
"@webstudio-is/trpc-interface": "workspace:*",
"nanoid": "^5.0.9",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"zod": "^3.22.4"
},
"devDependencies": {

View File

@ -13,7 +13,7 @@
"@webstudio-is/sdk": "workspace:*",
"fast-glob": "^3.3.2",
"react-docgen-typescript": "^2.2.2",
"typescript": "5.7.3",
"typescript": "5.8.2",
"zod": "^3.22.4"
},
"devDependencies": {

View File

@ -13,7 +13,7 @@
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:^",
"fast-glob": "^3.3.2",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"vitest": "^3.0.8"
},
"exports": {

View File

@ -15,7 +15,7 @@
"@webstudio-is/trpc-interface": "workspace:*",
"nanoid": "^5.0.9",
"slugify": "^1.6.6",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"zod": "^3.22.4"
},
"devDependencies": {

View File

@ -19,7 +19,7 @@
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"strip-indent": "^4.0.0",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"vitest": "^3.0.8",
"zod": "^3.22.4"
},

View File

@ -78,7 +78,7 @@
"playwright": "^1.50.1",
"react": "18.3.0-canary-14898b6a9-20240318",
"react-dom": "18.3.0-canary-14898b6a9-20240318",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"vitest": "^3.0.8",
"zod": "^3.22.4"
}

View File

@ -48,7 +48,7 @@
"acorn-walk": "^8.3.4",
"change-case": "^5.4.4",
"reserved-identifiers": "^1.0.0",
"type-fest": "^4.32.0",
"type-fest": "^4.37.0",
"zod": "^3.22.4"
},
"devDependencies": {

View File

@ -17,6 +17,7 @@
"skipLibCheck": true,
"strict": true,
"strictBuiltinIteratorReturn": true,
"erasableSyntaxOnly": true,
"allowJs": false,
"jsx": "react-jsx",
"resolveJsonModule": true,

616
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff