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.

Update tsconfigs

Mateusz Burzyński470d5e121461
diff --git a/apps/designer/tsconfig.json b/apps/designer/tsconfig.json
index 13305a7d34..0ded0289db 100644
--- a/apps/designer/tsconfig.json
+++ b/apps/designer/tsconfig.json
@@ -3,9 +3,7 @@
"include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"composite": true,
- "paths": {
- "~/*": ["app/*"]
- },
+ "paths": { "~/*": ["app/*"] },
"baseUrl": ".",
"rootDir": "./app"
},
diff --git a/packages/asset-uploader/tsconfig.json b/packages/asset-uploader/tsconfig.json
index cf79429cbb..fd1d68bb1c 100644
--- a/packages/asset-uploader/tsconfig.json
+++ b/packages/asset-uploader/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts"],
@@ -11,5 +10,5 @@
"outDir": "./lib",
"rootDir": "./src"
},
- "references": [{ "path": "../prisma-client" }]
+ "references": [{ "path": "../fonts" }, { "path": "../prisma-client" }]
}
diff --git a/packages/css-vars/tsconfig.json b/packages/css-vars/tsconfig.json
index c80c86b493..069593e71e 100644
--- a/packages/css-vars/tsconfig.json
+++ b/packages/css-vars/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts"],
@@ -10,5 +9,6 @@
"baseUrl": ".",
"outDir": "./lib",
"rootDir": "./src"
- }
+ },
+ "references": []
}
diff --git a/packages/design-system/tsconfig.json b/packages/design-system/tsconfig.json
index 445665e079..fcd59f899a 100644
--- a/packages/design-system/tsconfig.json
+++ b/packages/design-system/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
@@ -10,9 +9,7 @@
"target": "ES2020",
"strict": true,
"baseUrl": ".",
- "paths": {
- "~/*": ["./src/*"]
- },
+ "paths": { "~/*": ["./src/*"] },
"rootDir": "./src",
"outDir": "./lib"
},
diff --git a/packages/fonts/tsconfig.json b/packages/fonts/tsconfig.json
index 6b67ca9bbf..947d2780de 100644
--- a/packages/fonts/tsconfig.json
+++ b/packages/fonts/tsconfig.json
@@ -1,12 +1,14 @@
-// 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",
"include": ["./src/**/*.ts"],
"compilerOptions": {
+ "composite": true,
"module": "commonjs",
"target": "ES2020",
"strict": true,
"baseUrl": ".",
+ "rootDir": "./src",
"outDir": "./lib"
- }
+ },
+ "references": [{ "path": "../design-system" }]
}
diff --git a/packages/http-client/tsconfig.json b/packages/http-client/tsconfig.json
index b02d0cb5f0..d301e0daf1 100644
--- a/packages/http-client/tsconfig.json
+++ b/packages/http-client/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
@@ -9,9 +8,7 @@
"target": "ES2020",
"strict": true,
"baseUrl": ".",
- "paths": {
- "~/*": ["./src/*"]
- },
+ "paths": { "~/*": ["./src/*"] },
"outDir": "./lib",
"rootDir": "./src"
},
diff --git a/packages/icons/tsconfig.json b/packages/icons/tsconfig.json
index 700e9a4d9b..dbaa3d8227 100644
--- a/packages/icons/tsconfig.json
+++ b/packages/icons/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
@@ -10,9 +9,7 @@
"target": "ES2020",
"strict": true,
"baseUrl": ".",
- "paths": {
- "~/*": ["./src/*"]
- },
+ "paths": { "~/*": ["./src/*"] },
"outDir": "./lib",
"rootDir": "./src"
},
diff --git a/packages/prisma-client/tsconfig.json b/packages/prisma-client/tsconfig.json
index abde4dd5fd..de97bb833d 100644
--- a/packages/prisma-client/tsconfig.json
+++ b/packages/prisma-client/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts"],
diff --git a/packages/project/tsconfig.json b/packages/project/tsconfig.json
index 8dbc32b025..5466dc570c 100644
--- a/packages/project/tsconfig.json
+++ b/packages/project/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts"],
diff --git a/packages/react-sdk/tsconfig.json b/packages/react-sdk/tsconfig.json
index 5bd5a2b4c4..f2ee93f1de 100644
--- a/packages/react-sdk/tsconfig.json
+++ b/packages/react-sdk/tsconfig.json
@@ -1,4 +1,3 @@
-// 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",
"include": ["./src/**/*.ts", "./src/**/*.tsx", "./src/**/*.json"],
@@ -10,11 +9,14 @@
"target": "ES2020",
"strict": true,
"baseUrl": ".",
- "paths": {
- "~/*": ["./src/*"]
- },
+ "paths": { "~/*": ["./src/*"] },
"outDir": "./lib",
"rootDir": "./src"
},
- "references": [{ "path": "../icons" }, { "path": "../prisma-client" }]
+ "references": [
+ { "path": "../asset-uploader" },
+ { "path": "../fonts" },
+ { "path": "../icons" },
+ { "path": "../prisma-client" }
+ ]
}