Skip to content

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.

Resolve tsconfig package (#643)

Bogdan Chadkind05b1bc21f22
diff --git a/apps/designer/tsconfig.json b/apps/designer/tsconfig.json
index 6e2d8210fc..ed074db764 100644
--- a/apps/designer/tsconfig.json
+++ b/apps/designer/tsconfig.json
@@ -1,6 +1,6 @@
{
// Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/remix.json",
+ "extends": "../../packages/tsconfig/remix.json",
"include": [
"remix.env.d.ts",
"**/*.ts",
diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.json
index d4173235be..064b7b9b08 100644
--- a/packages/asset-uploader/package.json
+++ b/packages/asset-uploader/package.json
@@ -28,6 +28,7 @@
"@types/sharp": "^0.30.4",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4",
"zod": "^3.19.1"
},
diff --git a/packages/asset-uploader/tsconfig.json b/packages/asset-uploader/tsconfig.json
index 31c85c5126..f1a42e1669 100644
--- a/packages/asset-uploader/tsconfig.json
+++ b/packages/asset-uploader/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index f9b8c63317..687067d6f9 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -18,6 +18,7 @@
"devDependencies": {
"@types/css-tree": "^2.0.0",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"camelcase": "^6.3.0",
"css-tree": "^2.3.0",
"mdn-data": "2.0.23",
diff --git a/packages/css-data/tsconfig.json b/packages/css-data/tsconfig.json
index 31c85c5126..f1a42e1669 100644
--- a/packages/css-data/tsconfig.json
+++ b/packages/css-data/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/css-engine/package.json b/packages/css-engine/package.json
index a7bbf31cc4..80a65e9707 100644
--- a/packages/css-engine/package.json
+++ b/packages/css-engine/package.json
@@ -35,6 +35,7 @@
"@webstudio-is/jest-config": "*",
"@webstudio-is/css-data": "*",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4",
"@types/react": "^17.0.24",
"@types/react-dom": "^17.0.9"
diff --git a/packages/css-engine/tsconfig.json b/packages/css-engine/tsconfig.json
index 31c85c5126..f1a42e1669 100644
--- a/packages/css-engine/tsconfig.json
+++ b/packages/css-engine/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/css-vars/package.json b/packages/css-vars/package.json
index 46ba633796..14ddf7303f 100644
--- a/packages/css-vars/package.json
+++ b/packages/css-vars/package.json
@@ -17,6 +17,7 @@
"devDependencies": {
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
},
"module": "./lib/index.js",
diff --git a/packages/css-vars/tsconfig.json b/packages/css-vars/tsconfig.json
index 31c85c5126..f1a42e1669 100644
--- a/packages/css-vars/tsconfig.json
+++ b/packages/css-vars/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/design-system/package.json b/packages/design-system/package.json
index 9602d59235..68ff3994fc 100644
--- a/packages/design-system/package.json
+++ b/packages/design-system/package.json
@@ -28,6 +28,7 @@
"@storybook/testing-library": "^0.0.13",
"@webstudio-is/scripts": "*",
"@webstudio-is/jest-config": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
},
"peerDependencies": {
diff --git a/packages/design-system/tsconfig.json b/packages/design-system/tsconfig.json
index a97c11ded2..c5f13fda36 100644
--- a/packages/design-system/tsconfig.json
+++ b/packages/design-system/tsconfig.json
@@ -1,13 +1,10 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "ES2020",
- "jsx": "react-jsx",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./lib"
diff --git a/packages/design-tokens/package.json b/packages/design-tokens/package.json
index a943d9370f..b885a5ec59 100644
--- a/packages/design-tokens/package.json
+++ b/packages/design-tokens/package.json
@@ -21,6 +21,7 @@
},
"devDependencies": {
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
},
"exports": {
diff --git a/packages/design-tokens/tsconfig.json b/packages/design-tokens/tsconfig.json
index d2bd726a48..ecb353d7bb 100644
--- a/packages/design-tokens/tsconfig.json
+++ b/packages/design-tokens/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src", "../../@types/**/*.d.ts"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/fonts/package.json b/packages/fonts/package.json
index 0c3596b1a5..79885948dc 100644
--- a/packages/fonts/package.json
+++ b/packages/fonts/package.json
@@ -22,6 +22,7 @@
"@webstudio-is/design-system": "*",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4",
"zod": "^3.19.1"
},
diff --git a/packages/fonts/tsconfig.json b/packages/fonts/tsconfig.json
index 20fdf0ed67..d8e78e42eb 100644
--- a/packages/fonts/tsconfig.json
+++ b/packages/fonts/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./lib"
diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.json
index 487a984bee..56f780f995 100644
--- a/packages/generate-arg-types/package.json
+++ b/packages/generate-arg-types/package.json
@@ -18,6 +18,7 @@
"zod": "^3.19.1"
},
"devDependencies": {
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4",
"esbuild": "^0.14.25"
},
diff --git a/packages/generate-arg-types/tsconfig.json b/packages/generate-arg-types/tsconfig.json
index 9db3a9d278..e51f915cfa 100644
--- a/packages/generate-arg-types/tsconfig.json
+++ b/packages/generate-arg-types/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./.bin"
diff --git a/packages/http-client/package.json b/packages/http-client/package.json
index 144adb6048..906aedb712 100644
--- a/packages/http-client/package.json
+++ b/packages/http-client/package.json
@@ -18,6 +18,7 @@
"@webstudio-is/jest-config": "*",
"@webstudio-is/prisma-client": "*",
"@webstudio-is/project": "*",
+ "@webstudio-is/tsconfig": "*",
"tsup": "^6.1.3",
"typescript": "4.7.4"
},
diff --git a/packages/http-client/tsconfig.json b/packages/http-client/tsconfig.json
index 69307c0597..d710b41252 100644
--- a/packages/http-client/tsconfig.json
+++ b/packages/http-client/tsconfig.json
@@ -1,13 +1,10 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src", "../../@types/**/*.d.ts"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "commonjs",
- "jsx": "react-jsx",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"paths": { "~/*": ["./src/*"] },
"outDir": "./lib",
diff --git a/packages/icons/package.json b/packages/icons/package.json
index a4c32ecea9..aeb7f2db25 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -28,6 +28,7 @@
"@storybook/testing-library": "^0.0.13",
"@svgo/jsx": "^0.4.2",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"tsx": "^3.9.0",
"typescript": "4.7.4"
},
diff --git a/packages/icons/tsconfig.json b/packages/icons/tsconfig.json
index 627342b2e8..b4df5d6ddf 100644
--- a/packages/icons/tsconfig.json
+++ b/packages/icons/tsconfig.json
@@ -1,13 +1,10 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "es2020",
- "jsx": "react-jsx",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/image/package.json b/packages/image/package.json
index 8131053a73..530a9ce1f9 100644
--- a/packages/image/package.json
+++ b/packages/image/package.json
@@ -32,6 +32,7 @@
"@webstudio-is/generate-arg-types": "*",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
},
"peerDependencies": {
diff --git a/packages/image/tsconfig.json b/packages/image/tsconfig.json
index d42c045702..c771bbfb11 100644
--- a/packages/image/tsconfig.json
+++ b/packages/image/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src", "./src/**/__generated__/*.json"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./lib"
diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.json
index 60c34c5a47..794993a0a0 100644
--- a/packages/prisma-client/package.json
+++ b/packages/prisma-client/package.json
@@ -19,6 +19,7 @@
"devDependencies": {
"@types/uuid": "^8.3.4",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"concurrently": "^7.6.0",
"prisma": "^4.3.1",
"typescript": "4.7.4",
diff --git a/packages/prisma-client/tsconfig.json b/packages/prisma-client/tsconfig.json
index eb8619773c..d7826c868a 100644
--- a/packages/prisma-client/tsconfig.json
+++ b/packages/prisma-client/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2019",
- "strict": true,
"baseUrl": ".",
"rootDir": "./src",
"outDir": "./lib"
diff --git a/packages/project/package.json b/packages/project/package.json
index 1676ac3aff..eb39284674 100644
--- a/packages/project/package.json
+++ b/packages/project/package.json
@@ -31,6 +31,7 @@
},
"devDependencies": {
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
},
"exports": {
diff --git a/packages/project/tsconfig.json b/packages/project/tsconfig.json
index d2bd726a48..ecb353d7bb 100644
--- a/packages/project/tsconfig.json
+++ b/packages/project/tsconfig.json
@@ -1,11 +1,9 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": ["src", "../../@types/**/*.d.ts"],
"compilerOptions": {
"module": "ES2020",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json
index 29c694c458..3be65ac3a4 100644
--- a/packages/react-sdk/package.json
+++ b/packages/react-sdk/package.json
@@ -35,6 +35,7 @@
"@webstudio-is/generate-arg-types": "*",
"@webstudio-is/jest-config": "*",
"@webstudio-is/scripts": "*",
+ "@webstudio-is/tsconfig": "*",
"babel-loader": "^8.2.5",
"esbuild": "^0.14.25",
"esbuild-node-externals": "^1.4.1",
diff --git a/packages/react-sdk/tsconfig.json b/packages/react-sdk/tsconfig.json
index 9bd7a95bfc..f50346670d 100644
--- a/packages/react-sdk/tsconfig.json
+++ b/packages/react-sdk/tsconfig.json
@@ -1,6 +1,5 @@
{
- // Extends can't use node's resolution rn https://github.com/dividab/tsconfig-paths/issues/209#issuecomment-1177261091
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"include": [
"./src",
"./src/**/__generated__/*.json",
@@ -9,9 +8,7 @@
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "ES2020",
- "jsx": "react-jsx",
"target": "ES2020",
- "strict": true,
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
diff --git a/packages/scripts/package.json b/packages/scripts/package.json
index a4fc7a54bc..07ca6ef383 100644
--- a/packages/scripts/package.json
+++ b/packages/scripts/package.json
@@ -19,6 +19,7 @@
"tsx": "^3.12.1"
},
"devDependencies": {
+ "@webstudio-is/tsconfig": "*",
"typescript": "4.7.4"
}
}
diff --git a/packages/scripts/tsconfig.json b/packages/scripts/tsconfig.json
index 6f6db45114..a845858c30 100644
--- a/packages/scripts/tsconfig.json
+++ b/packages/scripts/tsconfig.json
@@ -1,5 +1,5 @@
{
- "extends": "../../node_modules/@webstudio-is/tsconfig/base.json",
+ "extends": "@webstudio-is/tsconfig/base.json",
"compilerOptions": {
"module": "ES2022",
"target": "ES2022"