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.

Check all .ts and .tsx in packages src folder (#476)

Bogdan Chadkin50010c7f0d19
diff --git a/packages/asset-uploader/tsconfig.json b/packages/asset-uploader/tsconfig.json
index 67e711a955..b53cddcbf0 100644
--- a/packages/asset-uploader/tsconfig.json
+++ b/packages/asset-uploader/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
diff --git a/packages/css-data/tsconfig.json b/packages/css-data/tsconfig.json
index f298e02ab1..0024dc5142 100644
--- a/packages/css-data/tsconfig.json
+++ b/packages/css-data/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
diff --git a/packages/css-engine/src/core/css-engine.stories.tsx b/packages/css-engine/src/core/css-engine.stories.tsx
index 23bf96bb72..62bf977e2a 100644
--- a/packages/css-engine/src/core/css-engine.stories.tsx
+++ b/packages/css-engine/src/core/css-engine.stories.tsx
@@ -1,4 +1,3 @@
-import * as React from "react";
import { CssEngine } from "./css-engine";
export default {
diff --git a/packages/css-engine/tsconfig.json b/packages/css-engine/tsconfig.json
index aef2fa6f3d..54b8dc5d15 100644
--- a/packages/css-engine/tsconfig.json
+++ b/packages/css-engine/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
diff --git a/packages/css-vars/tsconfig.json b/packages/css-vars/tsconfig.json
index f298e02ab1..0024dc5142 100644
--- a/packages/css-vars/tsconfig.json
+++ b/packages/css-vars/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
diff --git a/packages/design-system/tsconfig.json b/packages/design-system/tsconfig.json
index 60e1d1b132..ba30483254 100644
--- a/packages/design-system/tsconfig.json
+++ b/packages/design-system/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "commonjs",
diff --git a/packages/fonts/tsconfig.json b/packages/fonts/tsconfig.json
index 522b277be1..53af47871e 100644
--- a/packages/fonts/tsconfig.json
+++ b/packages/fonts/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
diff --git a/packages/http-client/tsconfig.json b/packages/http-client/tsconfig.json
index 1110884745..5429a06abe 100644
--- a/packages/http-client/tsconfig.json
+++ b/packages/http-client/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "commonjs",
diff --git a/packages/icons/tsconfig.json b/packages/icons/tsconfig.json
index 1cf9259fda..66c4373f0b 100644
--- a/packages/icons/tsconfig.json
+++ b/packages/icons/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "commonjs",
diff --git a/packages/prisma-client/tsconfig.json b/packages/prisma-client/tsconfig.json
index 0918fc98dc..11bd4f21c3 100644
--- a/packages/prisma-client/tsconfig.json
+++ b/packages/prisma-client/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2019",
diff --git a/packages/project/tsconfig.json b/packages/project/tsconfig.json
index 3bd05a70b5..cd49443b6e 100644
--- a/packages/project/tsconfig.json
+++ b/packages/project/tsconfig.json
@@ -1,7 +1,7 @@
{
// 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"],
+ "include": ["src"],
"compilerOptions": {
"module": "commonjs",
"target": "ES2020",
diff --git a/packages/react-sdk/tsconfig.json b/packages/react-sdk/tsconfig.json
index 4bb16ccc51..059cfd6a19 100644
--- a/packages/react-sdk/tsconfig.json
+++ b/packages/react-sdk/tsconfig.json
@@ -1,12 +1,7 @@
{
// 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",
- "./@types/**/*.d.ts"
- ],
+ "include": ["./src", "./src/**/*.json", "./@types/**/*.d.ts"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2020"],
"module": "commonjs",
diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json
index 5ea42d28ec..9d7171ceab 100644
--- a/packages/tsconfig/base.json
+++ b/packages/tsconfig/base.json
@@ -16,6 +16,7 @@
"skipLibCheck": true,
"strict": true,
"allowJs": false,
+ "jsx": "react-jsx",
"resolveJsonModule": true
},
"exclude": ["node_modules"]