From f48068e7977c57a76c66176b2369b0d76dd819eb Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Tue, 17 May 2022 14:30:30 +0800 Subject: [PATCH] deduplicate --- .../tsconfig.client.json | 1 - .../docusaurus-plugin-content-docs/tsconfig.json | 15 +++++++++------ .../tsconfig.server.json | 13 ------------- .../docusaurus-plugin-debug/tsconfig.client.json | 1 - packages/docusaurus-plugin-debug/tsconfig.json | 15 +++++++++------ .../docusaurus-plugin-debug/tsconfig.server.json | 13 ------------- .../tsconfig.client.json | 1 - .../tsconfig.json | 15 +++++++++------ .../tsconfig.server.json | 13 ------------- .../tsconfig.client.json | 1 - .../docusaurus-plugin-google-gtag/tsconfig.json | 15 +++++++++------ .../tsconfig.server.json | 13 ------------- .../tsconfig.client.json | 1 - .../docusaurus-plugin-pwa/tsconfig.client.json | 3 +-- packages/docusaurus-plugin-pwa/tsconfig.json | 14 ++++++++------ .../docusaurus-plugin-pwa/tsconfig.server.json | 12 ------------ packages/docusaurus-theme-classic/tsconfig.json | 3 +-- .../tsconfig.client.json | 3 +-- .../docusaurus-theme-live-codeblock/tsconfig.json | 14 ++++++++------ .../tsconfig.server.json | 12 ------------ .../tsconfig.client.json | 3 +-- .../docusaurus-theme-search-algolia/tsconfig.json | 14 ++++++++------ .../tsconfig.server.json | 12 ------------ packages/docusaurus/tsconfig.client.json | 1 - tsconfig.json | 2 +- 25 files changed, 65 insertions(+), 145 deletions(-) delete mode 100644 packages/docusaurus-plugin-content-docs/tsconfig.server.json delete mode 100644 packages/docusaurus-plugin-debug/tsconfig.server.json delete mode 100644 packages/docusaurus-plugin-google-analytics/tsconfig.server.json delete mode 100644 packages/docusaurus-plugin-google-gtag/tsconfig.server.json delete mode 100644 packages/docusaurus-plugin-pwa/tsconfig.server.json delete mode 100644 packages/docusaurus-theme-live-codeblock/tsconfig.server.json delete mode 100644 packages/docusaurus-theme-search-algolia/tsconfig.server.json diff --git a/packages/docusaurus-plugin-content-docs/tsconfig.client.json b/packages/docusaurus-plugin-content-docs/tsconfig.client.json index 46b6cfa6cd75..e11f4fc55dd9 100644 --- a/packages/docusaurus-plugin-content-docs/tsconfig.client.json +++ b/packages/docusaurus-plugin-content-docs/tsconfig.client.json @@ -5,7 +5,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "module": "esnext", - "jsx": "react-native", "rootDir": "src", "outDir": "lib" }, diff --git a/packages/docusaurus-plugin-content-docs/tsconfig.json b/packages/docusaurus-plugin-content-docs/tsconfig.json index 327ab65c7bbc..57f0111934e4 100644 --- a/packages/docusaurus-plugin-content-docs/tsconfig.json +++ b/packages/docusaurus-plugin-content-docs/tsconfig.json @@ -1,10 +1,13 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "module": "commonjs", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/client", "**/__tests__/**"] } diff --git a/packages/docusaurus-plugin-content-docs/tsconfig.server.json b/packages/docusaurus-plugin-content-docs/tsconfig.server.json deleted file mode 100644 index eb1b6945ac88..000000000000 --- a/packages/docusaurus-plugin-content-docs/tsconfig.server.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "module": "commonjs", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/client", "**/__tests__/**"] -} diff --git a/packages/docusaurus-plugin-debug/tsconfig.client.json b/packages/docusaurus-plugin-debug/tsconfig.client.json index e6b111f009ef..fa257cb48fc0 100644 --- a/packages/docusaurus-plugin-debug/tsconfig.client.json +++ b/packages/docusaurus-plugin-debug/tsconfig.client.json @@ -5,7 +5,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "module": "esnext", - "jsx": "react-native", "rootDir": "src", "outDir": "lib" }, diff --git a/packages/docusaurus-plugin-debug/tsconfig.json b/packages/docusaurus-plugin-debug/tsconfig.json index 327ab65c7bbc..f3146ecc7574 100644 --- a/packages/docusaurus-plugin-debug/tsconfig.json +++ b/packages/docusaurus-plugin-debug/tsconfig.json @@ -1,10 +1,13 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "module": "commonjs", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/theme"] } diff --git a/packages/docusaurus-plugin-debug/tsconfig.server.json b/packages/docusaurus-plugin-debug/tsconfig.server.json deleted file mode 100644 index a9fbcbd26b00..000000000000 --- a/packages/docusaurus-plugin-debug/tsconfig.server.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "module": "commonjs", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/theme"] -} diff --git a/packages/docusaurus-plugin-google-analytics/tsconfig.client.json b/packages/docusaurus-plugin-google-analytics/tsconfig.client.json index 5c3825405151..5552f405eaa8 100644 --- a/packages/docusaurus-plugin-google-analytics/tsconfig.client.json +++ b/packages/docusaurus-plugin-google-analytics/tsconfig.client.json @@ -5,7 +5,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "module": "esnext", - "jsx": "react-native", "rootDir": "src", "outDir": "lib" }, diff --git a/packages/docusaurus-plugin-google-analytics/tsconfig.json b/packages/docusaurus-plugin-google-analytics/tsconfig.json index 327ab65c7bbc..9ca36591661f 100644 --- a/packages/docusaurus-plugin-google-analytics/tsconfig.json +++ b/packages/docusaurus-plugin-google-analytics/tsconfig.json @@ -1,10 +1,13 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "module": "commonjs", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/analytics.ts"] } diff --git a/packages/docusaurus-plugin-google-analytics/tsconfig.server.json b/packages/docusaurus-plugin-google-analytics/tsconfig.server.json deleted file mode 100644 index dff58444b4d0..000000000000 --- a/packages/docusaurus-plugin-google-analytics/tsconfig.server.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "module": "commonjs", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/analytics.ts"] -} diff --git a/packages/docusaurus-plugin-google-gtag/tsconfig.client.json b/packages/docusaurus-plugin-google-gtag/tsconfig.client.json index 6b090f2c7a3a..5d20723701da 100644 --- a/packages/docusaurus-plugin-google-gtag/tsconfig.client.json +++ b/packages/docusaurus-plugin-google-gtag/tsconfig.client.json @@ -5,7 +5,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "module": "esnext", - "jsx": "react-native", "rootDir": "src", "outDir": "lib" }, diff --git a/packages/docusaurus-plugin-google-gtag/tsconfig.json b/packages/docusaurus-plugin-google-gtag/tsconfig.json index 327ab65c7bbc..cad9a09f4e49 100644 --- a/packages/docusaurus-plugin-google-gtag/tsconfig.json +++ b/packages/docusaurus-plugin-google-gtag/tsconfig.json @@ -1,10 +1,13 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "module": "commonjs", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/gtag.ts"] } diff --git a/packages/docusaurus-plugin-google-gtag/tsconfig.server.json b/packages/docusaurus-plugin-google-gtag/tsconfig.server.json deleted file mode 100644 index c2d73711e9b8..000000000000 --- a/packages/docusaurus-plugin-google-gtag/tsconfig.server.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "module": "commonjs", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/gtag.ts"] -} diff --git a/packages/docusaurus-plugin-ideal-image/tsconfig.client.json b/packages/docusaurus-plugin-ideal-image/tsconfig.client.json index e6b111f009ef..fa257cb48fc0 100644 --- a/packages/docusaurus-plugin-ideal-image/tsconfig.client.json +++ b/packages/docusaurus-plugin-ideal-image/tsconfig.client.json @@ -5,7 +5,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "module": "esnext", - "jsx": "react-native", "rootDir": "src", "outDir": "lib" }, diff --git a/packages/docusaurus-plugin-pwa/tsconfig.client.json b/packages/docusaurus-plugin-pwa/tsconfig.client.json index 554aeae7b214..0320006b5fb1 100644 --- a/packages/docusaurus-plugin-pwa/tsconfig.client.json +++ b/packages/docusaurus-plugin-pwa/tsconfig.client.json @@ -6,8 +6,7 @@ "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "rootDir": "src", "outDir": "lib", - "module": "esnext", - "jsx": "react-native" + "module": "esnext" }, "include": [ "src/theme/", diff --git a/packages/docusaurus-plugin-pwa/tsconfig.json b/packages/docusaurus-plugin-pwa/tsconfig.json index 327ab65c7bbc..98aa9153f659 100644 --- a/packages/docusaurus-plugin-pwa/tsconfig.json +++ b/packages/docusaurus-plugin-pwa/tsconfig.json @@ -1,10 +1,12 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/theme/", "src/registerSw.ts", "src/renderReloadPopup.tsx"] } diff --git a/packages/docusaurus-plugin-pwa/tsconfig.server.json b/packages/docusaurus-plugin-pwa/tsconfig.server.json deleted file mode 100644 index f1c2e17459be..000000000000 --- a/packages/docusaurus-plugin-pwa/tsconfig.server.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/theme/", "src/registerSw.ts", "src/renderReloadPopup.tsx"] -} diff --git a/packages/docusaurus-theme-classic/tsconfig.json b/packages/docusaurus-theme-classic/tsconfig.json index 145e89f84a44..659cb2cc6b98 100644 --- a/packages/docusaurus-theme-classic/tsconfig.json +++ b/packages/docusaurus-theme-classic/tsconfig.json @@ -3,8 +3,7 @@ "compilerOptions": { "lib": ["DOM", "ES2019"], "module": "esnext", - "noEmit": true, - "jsx": "react-native" + "noEmit": true }, "include": ["src/"] } diff --git a/packages/docusaurus-theme-live-codeblock/tsconfig.client.json b/packages/docusaurus-theme-live-codeblock/tsconfig.client.json index 8259c3a3ca5b..8b90974e09d7 100644 --- a/packages/docusaurus-theme-live-codeblock/tsconfig.client.json +++ b/packages/docusaurus-theme-live-codeblock/tsconfig.client.json @@ -6,8 +6,7 @@ "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "rootDir": "src", "outDir": "lib", - "module": "esnext", - "jsx": "react-native" + "module": "esnext" }, "include": ["src/theme", "src/*.d.ts", "src/custom-buble.ts"] } diff --git a/packages/docusaurus-theme-live-codeblock/tsconfig.json b/packages/docusaurus-theme-live-codeblock/tsconfig.json index 327ab65c7bbc..e9a5d5fd3387 100644 --- a/packages/docusaurus-theme-live-codeblock/tsconfig.json +++ b/packages/docusaurus-theme-live-codeblock/tsconfig.json @@ -1,10 +1,12 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/custom-buble.ts", "src/theme", "**/__tests__/**"] } diff --git a/packages/docusaurus-theme-live-codeblock/tsconfig.server.json b/packages/docusaurus-theme-live-codeblock/tsconfig.server.json deleted file mode 100644 index 00f4d4751b29..000000000000 --- a/packages/docusaurus-theme-live-codeblock/tsconfig.server.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/custom-buble.ts", "src/theme", "**/__tests__/**"] -} diff --git a/packages/docusaurus-theme-search-algolia/tsconfig.client.json b/packages/docusaurus-theme-search-algolia/tsconfig.client.json index b391c339cf9a..e118250e425b 100644 --- a/packages/docusaurus-theme-search-algolia/tsconfig.client.json +++ b/packages/docusaurus-theme-search-algolia/tsconfig.client.json @@ -6,8 +6,7 @@ "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "rootDir": "src", "outDir": "lib", - "module": "esnext", - "jsx": "react-native" + "module": "esnext" }, "include": ["src/theme", "src/client", "src/*.d.ts"] } diff --git a/packages/docusaurus-theme-search-algolia/tsconfig.json b/packages/docusaurus-theme-search-algolia/tsconfig.json index 327ab65c7bbc..413bf0796347 100644 --- a/packages/docusaurus-theme-search-algolia/tsconfig.json +++ b/packages/docusaurus-theme-search-algolia/tsconfig.json @@ -1,10 +1,12 @@ { "extends": "../../tsconfig.json", - "references": [ - {"path": "./tsconfig.server.json"}, - {"path": "./tsconfig.client.json"} - ], + "references": [{"path": "./tsconfig.client.json"}], "compilerOptions": { - "noEmit": true - } + "incremental": true, + "tsBuildInfoFile": "./lib/.tsbuildinfo", + "rootDir": "src", + "outDir": "lib" + }, + "include": ["src"], + "exclude": ["src/client", "src/theme", "**/__tests__/**"] } diff --git a/packages/docusaurus-theme-search-algolia/tsconfig.server.json b/packages/docusaurus-theme-search-algolia/tsconfig.server.json deleted file mode 100644 index 516d86b7b8a8..000000000000 --- a/packages/docusaurus-theme-search-algolia/tsconfig.server.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "composite": true, - "incremental": true, - "tsBuildInfoFile": "./lib/.tsbuildinfo", - "rootDir": "src", - "outDir": "lib" - }, - "include": ["src"], - "exclude": ["src/client", "src/theme", "**/__tests__/**"] -} diff --git a/packages/docusaurus/tsconfig.client.json b/packages/docusaurus/tsconfig.client.json index 46b6cfa6cd75..e11f4fc55dd9 100644 --- a/packages/docusaurus/tsconfig.client.json +++ b/packages/docusaurus/tsconfig.client.json @@ -5,7 +5,6 @@ "incremental": true, "tsBuildInfoFile": "./lib/.tsbuildinfo-client", "module": "esnext", - "jsx": "react-native", "rootDir": "src", "outDir": "lib" }, diff --git a/tsconfig.json b/tsconfig.json index 21cb4421c50a..e7d9ca05d0eb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "lib": ["ESNext", "DOM"], "declaration": true, "declarationMap": false, - "jsx": "react", + "jsx": "react-native", "importHelpers": true, "noEmitHelpers": true,