Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Check types outside of src folder (#1789)
Bogdan Chadkinf15339e00261
diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.jsonindex 9170229ac4..cdddf15678 100644--- a/packages/asset-uploader/package.json+++ b/packages/asset-uploader/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/asset-uploader/tsconfig.dts.json b/packages/asset-uploader/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/asset-uploader/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/asset-uploader/tsconfig.json b/packages/asset-uploader/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/asset-uploader/tsconfig.json+++ b/packages/asset-uploader/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/authorization-token/package.json b/packages/authorization-token/package.jsonindex 96efc65cad..4d2b56a911 100644--- a/packages/authorization-token/package.json+++ b/packages/authorization-token/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/authorization-token/tsconfig.dts.json b/packages/authorization-token/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/authorization-token/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/authorization-token/tsconfig.json b/packages/authorization-token/tsconfig.jsonindex 74b8f3611b..d2e5040f8f 100644--- a/packages/authorization-token/tsconfig.json+++ b/packages/authorization-token/tsconfig.json@@ -1,8 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/css-data/package.json b/packages/css-data/package.jsonindex 55b102d1c4..403bdf1978 100644--- a/packages/css-data/package.json+++ b/packages/css-data/package.json@@ -12,7 +12,7 @@"build": "build-package","build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/**/*.ts\"","build:descriptions": "tsx ./bin/property-value-descriptions.ts",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","test": "NODE_OPTIONS=--experimental-vm-modules jest"},diff --git a/packages/css-data/tsconfig.dts.json b/packages/css-data/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/css-data/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/css-data/tsconfig.json b/packages/css-data/tsconfig.jsonindex bac8765395..d2e5040f8f 100644--- a/packages/css-data/tsconfig.json+++ b/packages/css-data/tsconfig.json@@ -1,9 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src", "bin"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/css-engine/package.json b/packages/css-engine/package.jsonindex 21ac73a9a7..4bcdec7ea9 100644--- a/packages/css-engine/package.json+++ b/packages/css-engine/package.json@@ -10,7 +10,7 @@"checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","test": "NODE_OPTIONS=--experimental-vm-modules jest","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","storybook:run": "start-storybook -p 6006",diff --git a/packages/css-engine/tsconfig.dts.json b/packages/css-engine/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/css-engine/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/css-engine/tsconfig.json b/packages/css-engine/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/css-engine/tsconfig.json+++ b/packages/css-engine/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/css-vars/package.json b/packages/css-vars/package.jsonindex f85d01898a..9924b19252 100644--- a/packages/css-vars/package.json+++ b/packages/css-vars/package.json@@ -10,7 +10,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"devDependencies": {diff --git a/packages/css-vars/tsconfig.dts.json b/packages/css-vars/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/css-vars/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/css-vars/tsconfig.json b/packages/css-vars/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/css-vars/tsconfig.json+++ b/packages/css-vars/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/dashboard/package.json b/packages/dashboard/package.jsonindex 681bf775b0..815e172630 100644--- a/packages/dashboard/package.json+++ b/packages/dashboard/package.json@@ -11,6 +11,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/dashboard/tsconfig.dts.json b/packages/dashboard/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/dashboard/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/dashboard/tsconfig.json b/packages/dashboard/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/dashboard/tsconfig.json+++ b/packages/dashboard/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/design-system/bin/transform-figma-tokens.ts b/packages/design-system/bin/transform-figma-tokens.tsindex 91621fd7a8..38a01a92ca 100644--- a/packages/design-system/bin/transform-figma-tokens.ts+++ b/packages/design-system/bin/transform-figma-tokens.ts@@ -173,7 +173,7 @@ const printFontWeight = (path: string[], unparsedValue: unknown) => {const printFontFamily = (path: string[], unparsedValue: unknown) => {const value = parse(path, unparsedValue, FontFamilySchema);- return fontFamilyMapping[value] || value;+ return fontFamilyMapping[value as keyof typeof fontFamilyMapping] || value;};const printFontSize = (path: string[], unparsedValue: unknown) => {@@ -300,7 +300,9 @@ const main = () => {// no need to check for __proto__ (prototype polution)// because we know pathToName returns a string without "_"record[pathToName(path, type)] =- type in printerByType ? printerByType[type](path, value) : value;+ type in printerByType+ ? printerByType[type as keyof typeof printerByType](path, value)+ : value;});writeFileSync(diff --git a/packages/design-system/package.json b/packages/design-system/package.jsonindex f19586fe5a..0d7b88b594 100644--- a/packages/design-system/package.json+++ b/packages/design-system/package.json@@ -9,7 +9,7 @@"dev": "build-package --watch","build": "build-package","build-figma-tokens": "tsx ./bin/transform-figma-tokens.ts",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","test": "NODE_OPTIONS=--experimental-vm-modules jest",diff --git a/packages/design-system/tsconfig.dts.json b/packages/design-system/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/design-system/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/design-system/tsconfig.json b/packages/design-system/tsconfig.jsonindex e31c5e96a8..d2e5040f8f 100644--- a/packages/design-system/tsconfig.json+++ b/packages/design-system/tsconfig.json@@ -1,11 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src", "bin/transform.ts"],- "compilerOptions": {- "lib": ["DOM", "DOM.Iterable", "ES2020"],- "module": "ES2020",- "target": "ES2020",- "rootDir": "./src",- "outDir": "./lib"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/domain/package.json b/packages/domain/package.jsonindex 03d82b68d0..deede5d4a4 100644--- a/packages/domain/package.json+++ b/packages/domain/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/domain/tsconfig.dts.json b/packages/domain/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/domain/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/domain/tsconfig.json b/packages/domain/tsconfig.jsonindex 74b8f3611b..d2e5040f8f 100644--- a/packages/domain/tsconfig.json+++ b/packages/domain/tsconfig.json@@ -1,8 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.jsonindex e021d21efd..661d63f502 100644--- a/packages/feature-flags/package.json+++ b/packages/feature-flags/package.json@@ -10,7 +10,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {},diff --git a/packages/feature-flags/tsconfig.dts.json b/packages/feature-flags/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/feature-flags/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/feature-flags/tsconfig.json b/packages/feature-flags/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/feature-flags/tsconfig.json+++ b/packages/feature-flags/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/fonts/package.json b/packages/fonts/package.jsonindex aa162de6af..a39a4c3217 100644--- a/packages/fonts/package.json+++ b/packages/fonts/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/fonts/tsconfig.dts.json b/packages/fonts/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/fonts/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/fonts/tsconfig.json b/packages/fonts/tsconfig.jsonindex 07aa46f33c..d2e5040f8f 100644--- a/packages/fonts/tsconfig.json+++ b/packages/fonts/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "rootDir": "./src",- "outDir": "./lib"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/form-handlers/package.json b/packages/form-handlers/package.jsonindex 23255a61ef..7cbc6b0dc8 100644--- a/packages/form-handlers/package.json+++ b/packages/form-handlers/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/form-handlers/tsconfig.dts.json b/packages/form-handlers/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/form-handlers/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/form-handlers/tsconfig.json b/packages/form-handlers/tsconfig.jsonindex 74b8f3611b..d2e5040f8f 100644--- a/packages/form-handlers/tsconfig.json+++ b/packages/form-handlers/tsconfig.json@@ -1,8 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.jsonindex c5b1fa7f84..16b38b0b89 100644--- a/packages/generate-arg-types/package.json+++ b/packages/generate-arg-types/package.json@@ -8,7 +8,7 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","typecheck": "tsc --noEmit --emitDeclarationOnly false","checks": "pnpm typecheck && pnpm lint","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"diff --git a/packages/generate-arg-types/tsconfig.dts.json b/packages/generate-arg-types/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/generate-arg-types/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/generate-arg-types/tsconfig.json b/packages/generate-arg-types/tsconfig.jsonindex 07aa46f33c..d2e5040f8f 100644--- a/packages/generate-arg-types/tsconfig.json+++ b/packages/generate-arg-types/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "rootDir": "./src",- "outDir": "./lib"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/http-client/package.json b/packages/http-client/package.jsonindex 53d3ea7e90..5f71283008 100644--- a/packages/http-client/package.json+++ b/packages/http-client/package.json@@ -8,7 +8,7 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","test": "NODE_OPTIONS=--experimental-vm-modules jest","typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",diff --git a/packages/http-client/tsconfig.dts.json b/packages/http-client/tsconfig.dts.jsonnew file mode 100644index 0000000000..e215322bd7--- /dev/null+++ b/packages/http-client/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src", "../../@types/**/*.d.ts"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/http-client/tsconfig.json b/packages/http-client/tsconfig.jsonindex a9cf141a94..cdc0b59be2 100644--- a/packages/http-client/tsconfig.json+++ b/packages/http-client/tsconfig.json@@ -1,11 +1,4 @@{"extends": "@webstudio-is/tsconfig/base.json",- "include": ["src", "../../@types/**/*.d.ts"],- "compilerOptions": {- "lib": ["DOM", "DOM.Iterable", "ES2020"],- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "include": ["./", "../../@types/**/*.d.ts"]}diff --git a/packages/icons/package.json b/packages/icons/package.jsonindex 0078a0270d..e4f48d98ae 100644--- a/packages/icons/package.json+++ b/packages/icons/package.json@@ -8,7 +8,7 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","generate": "rm -fr src/__generated__ && NODE_OPTIONS='--loader=tsx' svgo-jsx svgo-jsx.config.ts && tsx svg-string.ts","typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",diff --git a/packages/icons/svgo-jsx.config.ts b/packages/icons/svgo-jsx.config.tsindex 4e694f4fd5..c8f02fa376 100644--- a/packages/icons/svgo-jsx.config.ts+++ b/packages/icons/svgo-jsx.config.ts@@ -2,7 +2,7 @@ import * as fs from "fs/promises";import * as path from "path";import type { Config } from "@svgo/jsx";-const template = ({+const template: Config["template"] = ({sourceFile,componentName,jsx,diff --git a/packages/icons/tsconfig.dts.json b/packages/icons/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/icons/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/icons/tsconfig.json b/packages/icons/tsconfig.jsonindex 3b3f10349b..d2e5040f8f 100644--- a/packages/icons/tsconfig.json+++ b/packages/icons/tsconfig.json@@ -1,11 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "lib": ["DOM", "DOM.Iterable", "ES2020"],- "module": "es2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/image/package.json b/packages/image/package.jsonindex 5847a103ef..0a33a70893 100644--- a/packages/image/package.json+++ b/packages/image/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","storybook:run": "start-storybook -p 6006","storybook:build": "build-storybook"diff --git a/packages/image/tsconfig.dts.json b/packages/image/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/image/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/image/tsconfig.json b/packages/image/tsconfig.jsonindex 8b4b213232..d2e5040f8f 100644--- a/packages/image/tsconfig.json+++ b/packages/image/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src", "./src/**/__generated__/*.json"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "rootDir": "./src",- "outDir": "./lib"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/project-build/package.json b/packages/project-build/package.jsonindex baf050e123..5ffbdd6e15 100644--- a/packages/project-build/package.json+++ b/packages/project-build/package.json@@ -32,7 +32,7 @@"checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types"+ "dts": "tsc --project tsconfig.dts.json"},"dependencies": {"@webstudio-is/css-data": "workspace:^",diff --git a/packages/project-build/tsconfig.dts.json b/packages/project-build/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/project-build/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/project-build/tsconfig.json b/packages/project-build/tsconfig.jsonindex 74b8f3611b..d2e5040f8f 100644--- a/packages/project-build/tsconfig.json+++ b/packages/project-build/tsconfig.json@@ -1,8 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/project/package.json b/packages/project/package.jsonindex 492a2b615c..8f1da5cece 100644--- a/packages/project/package.json+++ b/packages/project/package.json@@ -10,7 +10,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/project/tsconfig.dts.json b/packages/project/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/project/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/project/tsconfig.json b/packages/project/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/project/tsconfig.json+++ b/packages/project/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.jsonindex 4257200553..e5581f9d8b 100644--- a/packages/react-sdk/package.json+++ b/packages/react-sdk/package.json@@ -9,7 +9,7 @@"dev": "build-package --watch","build": "build-package","build:args": "generate-arg-types './src/components/*.tsx ./src/app/custom-components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",diff --git a/packages/react-sdk/tsconfig.dts.json b/packages/react-sdk/tsconfig.dts.jsonnew file mode 100644index 0000000000..e215322bd7--- /dev/null+++ b/packages/react-sdk/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src", "../../@types/**/*.d.ts"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/react-sdk/tsconfig.json b/packages/react-sdk/tsconfig.jsonindex 5771035485..cdc0b59be2 100644--- a/packages/react-sdk/tsconfig.json+++ b/packages/react-sdk/tsconfig.json@@ -1,15 +1,4 @@{"extends": "@webstudio-is/tsconfig/base.json",- "include": [- "./src",- "./src/**/__generated__/*.json",- "../../@types/**/*.d.ts"- ],- "compilerOptions": {- "lib": ["DOM", "DOM.Iterable", "ES2020"],- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "include": ["./", "../../@types/**/*.d.ts"]}diff --git a/packages/sdk-components-react-remix/package.json b/packages/sdk-components-react-remix/package.jsonindex fff73357eb..3bbc761d6f 100644--- a/packages/sdk-components-react-remix/package.json+++ b/packages/sdk-components-react-remix/package.json@@ -36,7 +36,7 @@"dev": "build-package --watch","build": "build-package","build:args": "generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint"diff --git a/packages/sdk-components-react-remix/tsconfig.dts.json b/packages/sdk-components-react-remix/tsconfig.dts.jsonnew file mode 100644index 0000000000..e215322bd7--- /dev/null+++ b/packages/sdk-components-react-remix/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src", "../../@types/**/*.d.ts"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/sdk-components-react-remix/tsconfig.json b/packages/sdk-components-react-remix/tsconfig.jsonindex 6f3664ccab..cdc0b59be2 100644--- a/packages/sdk-components-react-remix/tsconfig.json+++ b/packages/sdk-components-react-remix/tsconfig.json@@ -1,10 +1,4 @@{"extends": "@webstudio-is/tsconfig/base.json",- "include": ["./src", "../../@types/**/*.d.ts"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "include": ["./", "../../@types/**/*.d.ts"]}diff --git a/packages/sdk-components-react/package.json b/packages/sdk-components-react/package.jsonindex 0be7d07451..525b4ff9e2 100644--- a/packages/sdk-components-react/package.json+++ b/packages/sdk-components-react/package.json@@ -36,7 +36,7 @@"dev": "build-package --watch","build": "build-package","build:args": "generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' && prettier --write \"**/*.props.ts\"",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint",diff --git a/packages/sdk-components-react/tsconfig.dts.json b/packages/sdk-components-react/tsconfig.dts.jsonnew file mode 100644index 0000000000..e215322bd7--- /dev/null+++ b/packages/sdk-components-react/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src", "../../@types/**/*.d.ts"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/sdk-components-react/tsconfig.json b/packages/sdk-components-react/tsconfig.jsonindex 6f3664ccab..cdc0b59be2 100644--- a/packages/sdk-components-react/tsconfig.json+++ b/packages/sdk-components-react/tsconfig.json@@ -1,10 +1,4 @@{"extends": "@webstudio-is/tsconfig/base.json",- "include": ["./src", "../../@types/**/*.d.ts"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "include": ["./", "../../@types/**/*.d.ts"]}diff --git a/packages/trpc-interface/package.json b/packages/trpc-interface/package.jsonindex 4891a2a16f..fa725e1bd3 100644--- a/packages/trpc-interface/package.json+++ b/packages/trpc-interface/package.json@@ -11,7 +11,7 @@"checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --declarationDir lib/types",+ "dts": "tsc --project tsconfig.dts.json","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/trpc-interface/tsconfig.dts.json b/packages/trpc-interface/tsconfig.dts.jsonnew file mode 100644index 0000000000..e84928fb3a--- /dev/null+++ b/packages/trpc-interface/tsconfig.dts.json@@ -0,0 +1,7 @@+{+ "extends": "./tsconfig.json",+ "include": ["src"],+ "compilerOptions": {+ "declarationDir": "lib/types"+ }+}diff --git a/packages/trpc-interface/tsconfig.json b/packages/trpc-interface/tsconfig.jsonindex 243d0954f6..d2e5040f8f 100644--- a/packages/trpc-interface/tsconfig.json+++ b/packages/trpc-interface/tsconfig.json@@ -1,10 +1,3 @@{- "extends": "@webstudio-is/tsconfig/base.json",- "include": ["src"],- "compilerOptions": {- "module": "ES2020",- "target": "ES2020",- "outDir": "./lib",- "rootDir": "./src"- }+ "extends": "@webstudio-is/tsconfig/base.json"}diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.jsonindex 49608a247d..ac06217cca 100644--- a/packages/tsconfig/base.json+++ b/packages/tsconfig/base.json@@ -2,6 +2,8 @@"$schema": "https://json.schemastore.org/tsconfig","display": "Default","compilerOptions": {+ "module": "ES2022",+ "target": "ES2020","esModuleInterop": true,"forceConsistentCasingInFileNames": true,"inlineSources": false,