0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Resolve peer dependency problem in the integration packages (SolidJS, Vue, Svelte, React) (#12481)

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Co-authored-by: bluwy <34116392+bluwy@users.noreply.github.com>
This commit is contained in:
Eldar Kasmamytov 2024-11-21 12:12:00 +01:00 committed by GitHub
parent e329657a00
commit 8a46e8074d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 37 additions and 24 deletions

View file

@ -0,0 +1,9 @@
---
'@astrojs/solid-js': patch
'@astrojs/vue': patch
'@astrojs/svelte': patch
'@astrojs/react': patch
'@astrojs/preact': patch
---
Resolve `vite` peer dependency problem for strict package managers like **Yarn in PnP mode**.

View file

@ -40,7 +40,8 @@
"@preact/preset-vite": "2.8.2", "@preact/preset-vite": "2.8.2",
"@preact/signals": "^1.3.0", "@preact/signals": "^1.3.0",
"babel-plugin-transform-hook-names": "^1.0.2", "babel-plugin-transform-hook-names": "^1.0.2",
"preact-render-to-string": "^6.5.11" "preact-render-to-string": "^6.5.11",
"vite": "^5.4.10"
}, },
"devDependencies": { "devDependencies": {
"astro": "workspace:*", "astro": "workspace:*",

View file

@ -50,7 +50,8 @@
}, },
"dependencies": { "dependencies": {
"@vitejs/plugin-react": "^4.3.3", "@vitejs/plugin-react": "^4.3.3",
"ultrahtml": "^1.5.3" "ultrahtml": "^1.5.3",
"vite": "^5.4.10"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^18.3.12", "@types/react": "^18.3.12",
@ -59,8 +60,7 @@
"astro-scripts": "workspace:*", "astro-scripts": "workspace:*",
"cheerio": "1.0.0", "cheerio": "1.0.0",
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1"
"vite": "^5.4.10"
}, },
"peerDependencies": { "peerDependencies": {
"@types/react": "^17.0.50 || ^18.0.21", "@types/react": "^17.0.50 || ^18.0.21",

View file

@ -35,13 +35,13 @@
"dev": "astro-scripts dev \"src/**/*.ts\"" "dev": "astro-scripts dev \"src/**/*.ts\""
}, },
"dependencies": { "dependencies": {
"vite-plugin-solid": "^2.10.2" "vite-plugin-solid": "^2.10.2",
"vite": "^5.4.10"
}, },
"devDependencies": { "devDependencies": {
"astro": "workspace:*", "astro": "workspace:*",
"astro-scripts": "workspace:*", "astro-scripts": "workspace:*",
"solid-js": "^1.9.3", "solid-js": "^1.9.3"
"vite": "^5.4.10"
}, },
"peerDependencies": { "peerDependencies": {
"solid-devtools": "^0.30.1", "solid-devtools": "^0.30.1",

View file

@ -40,13 +40,13 @@
}, },
"dependencies": { "dependencies": {
"@sveltejs/vite-plugin-svelte": "^4.0.0", "@sveltejs/vite-plugin-svelte": "^4.0.0",
"svelte2tsx": "^0.7.22" "svelte2tsx": "^0.7.22",
"vite": "^5.4.10"
}, },
"devDependencies": { "devDependencies": {
"astro": "workspace:*", "astro": "workspace:*",
"astro-scripts": "workspace:*", "astro-scripts": "workspace:*",
"svelte": "^5.1.16", "svelte": "^5.1.16"
"vite": "^5.4.10"
}, },
"peerDependencies": { "peerDependencies": {
"astro": "^4.0.0", "astro": "^4.0.0",

View file

@ -45,14 +45,14 @@
"@vitejs/plugin-vue": "^5.1.4", "@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue-jsx": "^4.0.1", "@vitejs/plugin-vue-jsx": "^4.0.1",
"@vue/compiler-sfc": "^3.5.12", "@vue/compiler-sfc": "^3.5.12",
"vite-plugin-vue-devtools": "^7.6.3" "vite-plugin-vue-devtools": "^7.6.3",
"vite": "^5.4.10"
}, },
"devDependencies": { "devDependencies": {
"astro": "workspace:*", "astro": "workspace:*",
"astro-scripts": "workspace:*", "astro-scripts": "workspace:*",
"cheerio": "1.0.0", "cheerio": "1.0.0",
"linkedom": "^0.18.5", "linkedom": "^0.18.5",
"vite": "^5.4.10",
"vue": "^3.5.12" "vue": "^3.5.12"
}, },
"peerDependencies": { "peerDependencies": {

View file

@ -5018,6 +5018,9 @@ importers:
preact-render-to-string: preact-render-to-string:
specifier: ^6.5.11 specifier: ^6.5.11
version: 6.5.11(preact@10.24.3) version: 6.5.11(preact@10.24.3)
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
devDependencies: devDependencies:
astro: astro:
specifier: workspace:* specifier: workspace:*
@ -5037,6 +5040,9 @@ importers:
ultrahtml: ultrahtml:
specifier: ^1.5.3 specifier: ^1.5.3
version: 1.5.3 version: 1.5.3
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
devDependencies: devDependencies:
'@types/react': '@types/react':
specifier: ^18.3.12 specifier: ^18.3.12
@ -5059,9 +5065,6 @@ importers:
react-dom: react-dom:
specifier: ^18.3.1 specifier: ^18.3.1
version: 18.3.1(react@18.3.1) version: 18.3.1(react@18.3.1)
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
packages/integrations/react/test/fixtures/react-component: packages/integrations/react/test/fixtures/react-component:
dependencies: dependencies:
@ -5147,6 +5150,9 @@ importers:
packages/integrations/solid: packages/integrations/solid:
dependencies: dependencies:
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
vite-plugin-solid: vite-plugin-solid:
specifier: ^2.10.2 specifier: ^2.10.2
version: 2.10.2(solid-js@1.9.3)(vite@5.4.10(@types/node@18.19.50)(sass@1.80.6)) version: 2.10.2(solid-js@1.9.3)(vite@5.4.10(@types/node@18.19.50)(sass@1.80.6))
@ -5160,9 +5166,6 @@ importers:
solid-js: solid-js:
specifier: ^1.9.3 specifier: ^1.9.3
version: 1.9.3 version: 1.9.3
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
packages/integrations/svelte: packages/integrations/svelte:
dependencies: dependencies:
@ -5172,6 +5175,9 @@ importers:
svelte2tsx: svelte2tsx:
specifier: ^0.7.22 specifier: ^0.7.22
version: 0.7.22(svelte@5.1.16)(typescript@5.6.3) version: 0.7.22(svelte@5.1.16)(typescript@5.6.3)
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
devDependencies: devDependencies:
astro: astro:
specifier: workspace:* specifier: workspace:*
@ -5182,9 +5188,6 @@ importers:
svelte: svelte:
specifier: ^5.1.16 specifier: ^5.1.16
version: 5.1.16 version: 5.1.16
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
packages/integrations/tailwind: packages/integrations/tailwind:
dependencies: dependencies:
@ -5233,6 +5236,9 @@ importers:
'@vue/compiler-sfc': '@vue/compiler-sfc':
specifier: ^3.5.12 specifier: ^3.5.12
version: 3.5.12 version: 3.5.12
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
vite-plugin-vue-devtools: vite-plugin-vue-devtools:
specifier: ^7.6.3 specifier: ^7.6.3
version: 7.6.3(rollup@4.24.4)(vite@5.4.10(@types/node@18.19.50)(sass@1.80.6))(vue@3.5.12(typescript@5.6.3)) version: 7.6.3(rollup@4.24.4)(vite@5.4.10(@types/node@18.19.50)(sass@1.80.6))(vue@3.5.12(typescript@5.6.3))
@ -5249,9 +5255,6 @@ importers:
linkedom: linkedom:
specifier: ^0.18.5 specifier: ^0.18.5
version: 0.18.5 version: 0.18.5
vite:
specifier: ^5.4.10
version: 5.4.10(@types/node@18.19.50)(sass@1.80.6)
vue: vue:
specifier: ^3.5.12 specifier: ^3.5.12
version: 3.5.12(typescript@5.6.3) version: 3.5.12(typescript@5.6.3)