diff --git a/configs/no-lib/deprecated/tsconfig.backend.json b/configs/no-lib/deprecated/tsconfig.backend.json index cd2273e7..63534abf 100644 --- a/configs/no-lib/deprecated/tsconfig.backend.json +++ b/configs/no-lib/deprecated/tsconfig.backend.json @@ -2,6 +2,7 @@ "extends": "../tsconfig.base.json", "compilerOptions": { "typeRoots": ["../../../"], - "types": ["types/deprecated/backend", "node_modules/@types/node"] + "types": ["types/deprecated/backend", "node_modules/@types/node"], + "jsx": "react" } } diff --git a/configs/no-lib/deprecated/tsconfig.pages.json b/configs/no-lib/deprecated/tsconfig.pages.json index 712e0b51..983f4b90 100644 --- a/configs/no-lib/deprecated/tsconfig.pages.json +++ b/configs/no-lib/deprecated/tsconfig.pages.json @@ -2,6 +2,7 @@ "extends": "../tsconfig.base.json", "compilerOptions": { "typeRoots": ["../../../"], - "types": ["types/deprecated/pages"] + "types": ["types/deprecated/pages"], + "jsx": "react" } } diff --git a/configs/no-lib/deprecated/tsconfig.public.json b/configs/no-lib/deprecated/tsconfig.public.json index 04d4d979..53075f2a 100644 --- a/configs/no-lib/deprecated/tsconfig.public.json +++ b/configs/no-lib/deprecated/tsconfig.public.json @@ -2,6 +2,7 @@ "extends": "../tsconfig.base.json", "compilerOptions": { "typeRoots": ["../../../"], - "types": ["types/deprecated/public"] + "types": ["types/deprecated/public"], + "jsx": "react" } } diff --git a/configs/no-lib/tsconfig.backend.json b/configs/no-lib/tsconfig.backend.json index 1549d697..3bec978f 100644 --- a/configs/no-lib/tsconfig.backend.json +++ b/configs/no-lib/tsconfig.backend.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "typeRoots": ["../../"], - "types": ["types/backend", "node_modules/@types/node"] + "types": ["types/backend", "node_modules/@types/node"], + "jsx": "react" } } diff --git a/configs/no-lib/tsconfig.base.json b/configs/no-lib/tsconfig.base.json index 6b2fce45..5f6020c1 100644 --- a/configs/no-lib/tsconfig.base.json +++ b/configs/no-lib/tsconfig.base.json @@ -7,6 +7,7 @@ "noEmit": true, "checkJs": true, "allowSyntheticDefaultImports": true, - "target": "es2020" + "target": "es2020", + "jsx": "react" } } diff --git a/configs/no-lib/tsconfig.pages.json b/configs/no-lib/tsconfig.pages.json index 967af4dc..0c71f108 100644 --- a/configs/no-lib/tsconfig.pages.json +++ b/configs/no-lib/tsconfig.pages.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "typeRoots": ["../../"], - "types": ["types/pages"] + "types": ["types/pages"], + "jsx": "react" } } diff --git a/configs/no-lib/tsconfig.public.json b/configs/no-lib/tsconfig.public.json index 115ea7ad..179333c8 100644 --- a/configs/no-lib/tsconfig.public.json +++ b/configs/no-lib/tsconfig.public.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "typeRoots": ["../../"], - "types": ["types/public"] + "types": ["types/public"], + "jsx": "react" } } diff --git a/configs/no-lib/tsconfig.target_es.json b/configs/no-lib/tsconfig.target_es.json index b1211372..2c407633 100644 --- a/configs/no-lib/tsconfig.target_es.json +++ b/configs/no-lib/tsconfig.target_es.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "noLib": false, - "lib": ["ES2020"] + "lib": ["ES2020"], + "jsx": "react" } } diff --git a/configs/no-lib/tsconfig.webworker.json b/configs/no-lib/tsconfig.webworker.json index 0944203c..965b3edb 100644 --- a/configs/no-lib/tsconfig.webworker.json +++ b/configs/no-lib/tsconfig.webworker.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "noLib": false, - "lib": ["WebWorker"] + "lib": ["WebWorker"], + "jsx": "react" } } diff --git a/configs/tsconfig.backend.json b/configs/tsconfig.backend.json index c37fb1e8..2667486d 100644 --- a/configs/tsconfig.backend.json +++ b/configs/tsconfig.backend.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "typeRoots": ["../"], - "types": ["types/backend", "node_modules/@types/node"] + "types": ["types/backend", "node_modules/@types/node"], + "jsx": "react" } } \ No newline at end of file diff --git a/configs/tsconfig.base.json b/configs/tsconfig.base.json index 7ef0db02..9dba1b2b 100644 --- a/configs/tsconfig.base.json +++ b/configs/tsconfig.base.json @@ -7,6 +7,7 @@ "noEmit": true, "checkJs": true, "allowSyntheticDefaultImports": true, - "target": "es2020" + "target": "es2020", + "jsx": "react" } } \ No newline at end of file diff --git a/configs/tsconfig.pages.json b/configs/tsconfig.pages.json index 1b8c2988..06b4a6a0 100644 --- a/configs/tsconfig.pages.json +++ b/configs/tsconfig.pages.json @@ -3,6 +3,7 @@ "compilerOptions": { "typeRoots": ["../"], "types": ["types/pages"], - "lib": ["ES2020", "WebWorker"] + "lib": ["ES2020", "WebWorker"], + "jsx": "react" } } \ No newline at end of file diff --git a/configs/tsconfig.public.json b/configs/tsconfig.public.json index d581e5a3..c3560226 100644 --- a/configs/tsconfig.public.json +++ b/configs/tsconfig.public.json @@ -3,6 +3,7 @@ "compilerOptions": { "typeRoots": ["../"], "types": ["types/public"], - "lib": ["ES2020", "WebWorker"] + "lib": ["ES2020", "WebWorker"], + "jsx": "react" } } \ No newline at end of file diff --git a/test/utils/tsconfig.ts b/test/utils/tsconfig.ts index 01684100..d4112737 100644 --- a/test/utils/tsconfig.ts +++ b/test/utils/tsconfig.ts @@ -29,7 +29,8 @@ const getBackendTsConfig = (testPath: string): string => `{ { "backend/*": ["./*"] }, getPathsCompilerOptions(testPath, getWixModulesPaths()) ) - )} + )}, + "jsx": "react" } }`; @@ -42,7 +43,8 @@ const getPagesTsConfig = (testPath: string): string => `{ { "public/*": ["./public/*"] }, getPathsCompilerOptions(testPath, getWixModulesPaths()) ) - )} + )}, + "jsx": "react" } }`; @@ -55,7 +57,8 @@ const getPublicTsConfig = (testPath: string): string => `{ { "public/*": ["./*"] }, getPathsCompilerOptions(testPath, getWixModulesPaths()) ) - )} + )}, + "jsx": "react" } }`; @@ -71,7 +74,8 @@ const getEmptyTsConfig = () => `{ "allowJs": true, "noEmit": true, "checkJs": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "jsx": "react" } }`; diff --git a/tsconfig.json b/tsconfig.json index 7aec877f..066f8c50 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,11 +20,13 @@ "declaration": true, "outDir": "dist/types", "declarationMap": true, - "removeComments": false + "removeComments": false, + "jsx": "react" }, "ts-node": { "compilerOptions": { - "module": "commonjs" + "module": "commonjs", + "jsx": "react" } }, "include": ["./src/**/*", "./scripts/**/*", "./test/**/*"],