From 0c7c9998c7134e0fd2137bdc7468a71b395c36d5 Mon Sep 17 00:00:00 2001 From: gracefullight Date: Sat, 2 Nov 2024 12:42:45 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20internal=20tsconfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/extensions.json | 1 - mocks/templates/plugin/package.json | 1 + .../package.json | 1 + .../tsconfig.json | 2 +- .../docusaurus-plugin-channelio/package.json | 1 + .../docusaurus-plugin-channelio/tsconfig.json | 2 +- .../docusaurus-plugin-chatra/package.json | 1 + .../docusaurus-plugin-chatra/tsconfig.json | 2 +- .../package.json | 1 + .../tsconfig.json | 2 +- .../docusaurus-plugin-gitter/package.json | 1 + .../docusaurus-plugin-gitter/tsconfig.json | 2 +- .../package.json | 1 + .../tsconfig.json | 2 +- .../docusaurus-plugin-intercom/package.json | 1 + .../docusaurus-plugin-intercom/tsconfig.json | 2 +- .../docusaurus-plugin-meta-pixel/package.json | 1 + .../tsconfig.json | 2 +- .../package.json | 1 + .../tsconfig.json | 2 +- .../package.json | 1 + .../tsconfig.json | 2 +- .../docusaurus-plugin-sentry/package.json | 1 + .../docusaurus-plugin-sentry/tsconfig.json | 2 +- .../docusaurus-plugin-tailwind/package.json | 1 + .../docusaurus-plugin-tailwind/tsconfig.json | 2 +- .../package.json | 8 +++- .../tsconfig.json | 2 +- .../package.json | 1 + .../tsconfig.json | 2 +- packages/tsconfig/package.json | 2 +- pnpm-lock.yaml | 42 +++++++++++++++++++ 32 files changed, 78 insertions(+), 17 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 15dbb08..6bb876a 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -2,7 +2,6 @@ "recommendations": [ "aaron-bond.better-comments", "esbenp.prettier-vscode", - "ms-vscode.vscode-typescript-next", "streetsidesoftware.code-spell-checker", "biomejs.biome", "oxc.oxc-vscode" diff --git a/mocks/templates/plugin/package.json b/mocks/templates/plugin/package.json index fd46eca..d32b111 100644 --- a/mocks/templates/plugin/package.json +++ b/mocks/templates/plugin/package.json @@ -23,6 +23,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-baidu-analytics/package.json b/packages/docusaurus-plugin-baidu-analytics/package.json index 541bdfe..eb03a53 100644 --- a/packages/docusaurus-plugin-baidu-analytics/package.json +++ b/packages/docusaurus-plugin-baidu-analytics/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-baidu-analytics/tsconfig.json b/packages/docusaurus-plugin-baidu-analytics/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-baidu-analytics/tsconfig.json +++ b/packages/docusaurus-plugin-baidu-analytics/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-channelio/package.json b/packages/docusaurus-plugin-channelio/package.json index 9010b66..464458b 100644 --- a/packages/docusaurus-plugin-channelio/package.json +++ b/packages/docusaurus-plugin-channelio/package.json @@ -25,6 +25,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-channelio/tsconfig.json b/packages/docusaurus-plugin-channelio/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-channelio/tsconfig.json +++ b/packages/docusaurus-plugin-channelio/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-chatra/package.json b/packages/docusaurus-plugin-chatra/package.json index 5491590..8325c58 100644 --- a/packages/docusaurus-plugin-chatra/package.json +++ b/packages/docusaurus-plugin-chatra/package.json @@ -24,6 +24,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-chatra/tsconfig.json b/packages/docusaurus-plugin-chatra/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-chatra/tsconfig.json +++ b/packages/docusaurus-plugin-chatra/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-cloudflare-analytics/package.json b/packages/docusaurus-plugin-cloudflare-analytics/package.json index 7f49a20..ac4b13d 100644 --- a/packages/docusaurus-plugin-cloudflare-analytics/package.json +++ b/packages/docusaurus-plugin-cloudflare-analytics/package.json @@ -25,6 +25,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-cloudflare-analytics/tsconfig.json b/packages/docusaurus-plugin-cloudflare-analytics/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-cloudflare-analytics/tsconfig.json +++ b/packages/docusaurus-plugin-cloudflare-analytics/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-gitter/package.json b/packages/docusaurus-plugin-gitter/package.json index 5506ef8..d0b5e4a 100644 --- a/packages/docusaurus-plugin-gitter/package.json +++ b/packages/docusaurus-plugin-gitter/package.json @@ -24,6 +24,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-gitter/tsconfig.json b/packages/docusaurus-plugin-gitter/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-gitter/tsconfig.json +++ b/packages/docusaurus-plugin-gitter/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-google-adsense/package.json b/packages/docusaurus-plugin-google-adsense/package.json index 0f79419..6593966 100644 --- a/packages/docusaurus-plugin-google-adsense/package.json +++ b/packages/docusaurus-plugin-google-adsense/package.json @@ -26,6 +26,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-google-adsense/tsconfig.json b/packages/docusaurus-plugin-google-adsense/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-google-adsense/tsconfig.json +++ b/packages/docusaurus-plugin-google-adsense/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-intercom/package.json b/packages/docusaurus-plugin-intercom/package.json index e038862..aec2cc0 100644 --- a/packages/docusaurus-plugin-intercom/package.json +++ b/packages/docusaurus-plugin-intercom/package.json @@ -24,6 +24,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-intercom/tsconfig.json b/packages/docusaurus-plugin-intercom/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-intercom/tsconfig.json +++ b/packages/docusaurus-plugin-intercom/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-meta-pixel/package.json b/packages/docusaurus-plugin-meta-pixel/package.json index f707630..646224d 100644 --- a/packages/docusaurus-plugin-meta-pixel/package.json +++ b/packages/docusaurus-plugin-meta-pixel/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-meta-pixel/tsconfig.json b/packages/docusaurus-plugin-meta-pixel/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-meta-pixel/tsconfig.json +++ b/packages/docusaurus-plugin-meta-pixel/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-microsoft-clarity/package.json b/packages/docusaurus-plugin-microsoft-clarity/package.json index f3a4dc7..0e62ea5 100644 --- a/packages/docusaurus-plugin-microsoft-clarity/package.json +++ b/packages/docusaurus-plugin-microsoft-clarity/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-microsoft-clarity/tsconfig.json b/packages/docusaurus-plugin-microsoft-clarity/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-microsoft-clarity/tsconfig.json +++ b/packages/docusaurus-plugin-microsoft-clarity/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-naver-analytics/package.json b/packages/docusaurus-plugin-naver-analytics/package.json index 03a844d..a3ef690 100644 --- a/packages/docusaurus-plugin-naver-analytics/package.json +++ b/packages/docusaurus-plugin-naver-analytics/package.json @@ -25,6 +25,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-naver-analytics/tsconfig.json b/packages/docusaurus-plugin-naver-analytics/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-naver-analytics/tsconfig.json +++ b/packages/docusaurus-plugin-naver-analytics/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-sentry/package.json b/packages/docusaurus-plugin-sentry/package.json index d4dc456..ed8c110 100644 --- a/packages/docusaurus-plugin-sentry/package.json +++ b/packages/docusaurus-plugin-sentry/package.json @@ -26,6 +26,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-sentry/tsconfig.json b/packages/docusaurus-plugin-sentry/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-sentry/tsconfig.json +++ b/packages/docusaurus-plugin-sentry/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-tailwind/package.json b/packages/docusaurus-plugin-tailwind/package.json index bbc1772..602e225 100644 --- a/packages/docusaurus-plugin-tailwind/package.json +++ b/packages/docusaurus-plugin-tailwind/package.json @@ -26,6 +26,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-tailwind/tsconfig.json b/packages/docusaurus-plugin-tailwind/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-tailwind/tsconfig.json +++ b/packages/docusaurus-plugin-tailwind/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-vercel-analytics/package.json b/packages/docusaurus-plugin-vercel-analytics/package.json index 8531100..2e29b01 100644 --- a/packages/docusaurus-plugin-vercel-analytics/package.json +++ b/packages/docusaurus-plugin-vercel-analytics/package.json @@ -1,7 +1,12 @@ { "name": "@gracefullight/docusaurus-plugin-vercel-analytics", "version": "1.0.1", - "keywords": ["vercel", "vercel analytics", "docusaurus", "docusaurus plugin"], + "keywords": [ + "vercel", + "vercel analytics", + "docusaurus", + "docusaurus plugin" + ], "repository": "https://github.com/gracefullight/docusaurus-plugins", "license": "MIT", "author": { @@ -19,6 +24,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-vercel-analytics/tsconfig.json b/packages/docusaurus-plugin-vercel-analytics/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-vercel-analytics/tsconfig.json +++ b/packages/docusaurus-plugin-vercel-analytics/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/docusaurus-plugin-yandex-metrica/package.json b/packages/docusaurus-plugin-yandex-metrica/package.json index 35425a2..e50128e 100644 --- a/packages/docusaurus-plugin-yandex-metrica/package.json +++ b/packages/docusaurus-plugin-yandex-metrica/package.json @@ -27,6 +27,7 @@ }, "devDependencies": { "@docusaurus/types": "^3", + "@gracefullight-docusaurus/tsconfig": "workspace:^", "tsup": "*", "typescript": "^5.4.5" } diff --git a/packages/docusaurus-plugin-yandex-metrica/tsconfig.json b/packages/docusaurus-plugin-yandex-metrica/tsconfig.json index 226905b..3e086ef 100644 --- a/packages/docusaurus-plugin-yandex-metrica/tsconfig.json +++ b/packages/docusaurus-plugin-yandex-metrica/tsconfig.json @@ -1,4 +1,4 @@ { - "extends": "tsconfig/base.json", + "extends": "@gracefullight-docusaurus/tsconfig/base.json", "include": ["src"] } diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index 08dcecf..a906c56 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,5 +1,5 @@ { - "name": "tsconfig", + "name": "@gracefullight-docusaurus/tsconfig", "version": "0.1.0", "private": true, "files": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6fddd25..3d6f2fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,6 +75,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.18.4)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -91,6 +94,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -107,6 +113,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -123,6 +132,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -139,6 +151,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -155,6 +170,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -171,6 +189,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -187,6 +208,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -203,6 +227,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -219,6 +246,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -235,6 +265,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -260,6 +293,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.18.4)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.2.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -276,6 +312,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.18.4)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.1.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5) @@ -292,6 +331,9 @@ importers: '@docusaurus/types': specifier: ^3 version: 3.0.0(@swc/core@1.7.42)(esbuild@0.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@gracefullight-docusaurus/tsconfig': + specifier: workspace:^ + version: link:../tsconfig tsup: specifier: '*' version: 7.0.0(@swc/core@1.7.42)(postcss@8.4.33)(typescript@5.4.5)