From fb383f0a4c490343d6c1bc1079c5158ffec38600 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Wed, 4 Dec 2024 15:39:59 +0800 Subject: [PATCH] build(dts): fix dts error when build vue2 components --- examples/openinula-docs/package.json | 2 +- examples/react-docs/package.json | 2 +- examples/sites/package.json | 4 ++-- examples/vue2.7/package.json | 2 +- examples/vue2/package.json | 2 +- examples/vue3/package.json | 2 +- internals/cli/package.json | 1 + internals/unplugin-tiny-vue/package.json | 2 +- internals/unplugin-virtual-template/package.json | 2 +- internals/vue-vite-import/example/ts/package.json | 2 +- internals/vue-vite-import/package.json | 2 +- package.json | 4 ++-- pnpm-workspace.yaml | 1 + 13 files changed, 15 insertions(+), 13 deletions(-) diff --git a/examples/openinula-docs/package.json b/examples/openinula-docs/package.json index dd35cc5785..33030c1cd0 100644 --- a/examples/openinula-docs/package.json +++ b/examples/openinula-docs/package.json @@ -22,7 +22,7 @@ "eslint": "^8.44.0", "eslint-plugin-react-hooks": "^4.6.0", "postcss": "^8.4.16", - "typescript": "^5.0.2", + "typescript": "catalog:", "vite": "catalog:", "vite-plugin-svgr": "^3.2.0" } diff --git a/examples/react-docs/package.json b/examples/react-docs/package.json index 4bcb362a1e..597c7b16b9 100644 --- a/examples/react-docs/package.json +++ b/examples/react-docs/package.json @@ -25,7 +25,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "postcss": "^8.4.16", "tailwindcss": "^3.3.3", - "typescript": "^5.0.2", + "typescript": "catalog:", "vite": "catalog:", "vite-plugin-react": "^4.0.1", "vite-plugin-svgr": "^3.2.0" diff --git a/examples/sites/package.json b/examples/sites/package.json index 02a4e4f358..66c60b7221 100644 --- a/examples/sites/package.json +++ b/examples/sites/package.json @@ -74,7 +74,7 @@ "prettier": "^2.7.1", "stylelint": "^14.9.1", "stylelint-config-standard": "^26.0.0", - "typescript": "^5.0.2", + "typescript": "catalog:", "unocss": "^0.39.3", "unplugin-vue-components": "^0.19.9", "uslug": "^1.0.4", @@ -87,4 +87,4 @@ "vite-svg-loader": "^3.6.0", "vue-tsc": "^1.8.5" } -} \ No newline at end of file +} diff --git a/examples/vue2.7/package.json b/examples/vue2.7/package.json index 86c52b7762..731175ada3 100644 --- a/examples/vue2.7/package.json +++ b/examples/vue2.7/package.json @@ -37,7 +37,7 @@ "postcss": "^8.4.16", "tailwindcss": "^3.2.4", "tailwindcss-vite-plugin": "^0.0.3", - "typescript": "^5.0.0", + "typescript": "catalog:", "vite": "catalog:", "vite-plugin-checker": "^0.5.2", "vite-plugin-dynamic-import": "^1.2.4", diff --git a/examples/vue2/package.json b/examples/vue2/package.json index ae2a0fa1d5..8270354515 100644 --- a/examples/vue2/package.json +++ b/examples/vue2/package.json @@ -43,7 +43,7 @@ "postcss": "^8.4.16", "tailwindcss": "^3.2.4", "tailwindcss-vite-plugin": "^0.0.3", - "typescript": "^5.0.0", + "typescript": "catalog:", "unocss": "^0.61.9", "unplugin-vue2-script-setup": "^0.11.3", "vite": "catalog:", diff --git a/examples/vue3/package.json b/examples/vue3/package.json index 2596a980a6..f54960a8b6 100644 --- a/examples/vue3/package.json +++ b/examples/vue3/package.json @@ -46,7 +46,7 @@ "postcss": "^8.4.16", "tailwindcss": "^3.2.4", "tailwindcss-vite-plugin": "^0.0.3", - "typescript": "^5.0.0", + "typescript": "catalog:", "unocss": "^0.61.9", "vite": "catalog:", "vite-plugin-checker": "^0.5.2", diff --git a/internals/cli/package.json b/internals/cli/package.json index e24f38ea17..b878fdca0e 100644 --- a/internals/cli/package.json +++ b/internals/cli/package.json @@ -24,6 +24,7 @@ "semver": "^7.3.8", "tsup": "7.2.0", "vite": "catalog:", + "typescript": "catalog:", "tailwindcss": "^3.2.4" }, "bin": { diff --git a/internals/unplugin-tiny-vue/package.json b/internals/unplugin-tiny-vue/package.json index 508ee11515..6e4ea7357e 100644 --- a/internals/unplugin-tiny-vue/package.json +++ b/internals/unplugin-tiny-vue/package.json @@ -40,7 +40,7 @@ "devDependencies": { "rimraf": "^5.0.5", "tsup": "7.2.0", - "typescript": "^5.0.0", + "typescript": "catalog:", "vite": "catalog:" } } diff --git a/internals/unplugin-virtual-template/package.json b/internals/unplugin-virtual-template/package.json index a877366a84..ac040a0cd7 100644 --- a/internals/unplugin-virtual-template/package.json +++ b/internals/unplugin-virtual-template/package.json @@ -81,7 +81,7 @@ "rimraf": "^3.0.2", "rollup": "^3.7.3", "tsup": "7.2.0", - "typescript": "^5.0.0", + "typescript": "catalog:", "vite": "catalog:", "vitest": "catalog:", "webpack": "^5.75.0" diff --git a/internals/vue-vite-import/example/ts/package.json b/internals/vue-vite-import/example/ts/package.json index 2241ba5dc9..9982dfc438 100644 --- a/internals/vue-vite-import/example/ts/package.json +++ b/internals/vue-vite-import/example/ts/package.json @@ -16,7 +16,7 @@ "@opentiny/vue-vite-import": "^1.0.1", "@types/node": "^18.14.6", "@vitejs/plugin-vue": "^4.0.0", - "typescript": "^5.0.0", + "typescript": "catalog:", "vite": "catalog:", "vue-tsc": "^1.6.5" } diff --git a/internals/vue-vite-import/package.json b/internals/vue-vite-import/package.json index ab4039a8ad..dd078f649d 100644 --- a/internals/vue-vite-import/package.json +++ b/internals/vue-vite-import/package.json @@ -37,7 +37,7 @@ "change-case": "^4.1.2" }, "devDependencies": { - "typescript": "^5.0.0", + "typescript": "catalog:", "tsup": "7.2.0", "vite": "catalog:", "rimraf": "^3.0.2" diff --git a/package.json b/package.json index 0cce705776..4493d153a6 100644 --- a/package.json +++ b/package.json @@ -193,7 +193,7 @@ "rimraf": "^3.0.2", "shelljs": "^0.8.5", "shx": "^0.3.4", - "typescript": "^5.0.0", + "typescript": "catalog:", "vite": "catalog:", "vue": "^3.4.23", "vue-tsc": "^1.6.5" @@ -215,7 +215,7 @@ "regenerator-runtime": "0.13.9", "tailwindcss@3": "3.2.4", "tslib": "2.4.0", - "typescript": "^5.0.0", + "typescript": "catalog:", "vue-i18n@8": "8.27.2", "vue-i18n@9": "9.2.2", "vue-router@3": "3.6.5", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 890acab244..cff1a8376a 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -8,3 +8,4 @@ packages: catalog: 'vitest': '^0.31.0' 'vite': '^4.3.8' + 'typescript': '~5.3.3'