From 6b59f9364f1f319f7a284e25eeb7004d99c2daae Mon Sep 17 00:00:00 2001 From: sahitm Date: Mon, 14 Oct 2024 23:46:55 +0530 Subject: [PATCH 1/2] Refactor tsconfig files to include JSX option --- apps/playground-web/tsconfig.json | 11 ++++++++--- packages/ui/tsconfig.json | 16 ++++++++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/apps/playground-web/tsconfig.json b/apps/playground-web/tsconfig.json index 28a5c9e..25d6178 100644 --- a/apps/playground-web/tsconfig.json +++ b/apps/playground-web/tsconfig.json @@ -1,13 +1,16 @@ { "extends": "@dicedb/typescript-config/nextjs.json", "compilerOptions": { + "jsx": "react", "plugins": [ { "name": "next" } ], "paths": { - "@/*": ["./*"] + "@/*": [ + "./*" + ] } }, "include": [ @@ -17,5 +20,7 @@ "**/*.tsx", ".next/types/**/*.ts" ], - "exclude": ["node_modules"] -} + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index b1a94fc..2dcfb98 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -1,9 +1,17 @@ { "extends": "@dicedb/typescript-config/react-library.json", "compilerOptions": { + "jsx": "react", "outDir": "dist", - "types": ["jest"] + "types": [ + "jest" + ] }, - "include": ["src"], - "exclude": ["node_modules", "dist"] -} + "include": [ + "src" + ], + "exclude": [ + "node_modules", + "dist" + ] +} \ No newline at end of file From da45054cd18bed744c934fa9aec19054fb647ecc Mon Sep 17 00:00:00 2001 From: sahitm Date: Wed, 16 Oct 2024 23:37:01 +0530 Subject: [PATCH 2/2] Refactor tsconfig files to include JSX option --- apps/playground-web/tsconfig.json | 1 - packages/ui/tsconfig.json | 1 - tooling/typescript-config/nextjs.json | 16 ++++++++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/playground-web/tsconfig.json b/apps/playground-web/tsconfig.json index 25d6178..3874995 100644 --- a/apps/playground-web/tsconfig.json +++ b/apps/playground-web/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@dicedb/typescript-config/nextjs.json", "compilerOptions": { - "jsx": "react", "plugins": [ { "name": "next" diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index 2dcfb98..b40b600 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@dicedb/typescript-config/react-library.json", "compilerOptions": { - "jsx": "react", "outDir": "dist", "types": [ "jest" diff --git a/tooling/typescript-config/nextjs.json b/tooling/typescript-config/nextjs.json index 6b622ad..e7f2a3a 100644 --- a/tooling/typescript-config/nextjs.json +++ b/tooling/typescript-config/nextjs.json @@ -3,12 +3,20 @@ "display": "Next.js", "extends": "./base.json", "compilerOptions": { - "lib": ["esnext", "DOM", "DOM.Iterable"], - "plugins": [{ "name": "next" }], + "lib": [ + "esnext", + "DOM", + "DOM.Iterable" + ], + "plugins": [ + { + "name": "next" + } + ], "module": "ESNext", "moduleResolution": "Bundler", "allowJs": true, - "jsx": "preserve", + "jsx": "react", "noEmit": true } -} +} \ No newline at end of file