Skip to content

Commit 8a46e80

Browse files
marbrexbluwyematipico
authoredNov 21, 2024··
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>
1 parent e329657 commit 8a46e80

File tree

7 files changed

+37
-24
lines changed

7 files changed

+37
-24
lines changed
 
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@astrojs/solid-js': patch
3+
'@astrojs/vue': patch
4+
'@astrojs/svelte': patch
5+
'@astrojs/react': patch
6+
'@astrojs/preact': patch
7+
---
8+
9+
Resolve `vite` peer dependency problem for strict package managers like **Yarn in PnP mode**.

‎packages/integrations/preact/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"@preact/preset-vite": "2.8.2",
4141
"@preact/signals": "^1.3.0",
4242
"babel-plugin-transform-hook-names": "^1.0.2",
43-
"preact-render-to-string": "^6.5.11"
43+
"preact-render-to-string": "^6.5.11",
44+
"vite": "^5.4.10"
4445
},
4546
"devDependencies": {
4647
"astro": "workspace:*",

‎packages/integrations/react/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
},
5151
"dependencies": {
5252
"@vitejs/plugin-react": "^4.3.3",
53-
"ultrahtml": "^1.5.3"
53+
"ultrahtml": "^1.5.3",
54+
"vite": "^5.4.10"
5455
},
5556
"devDependencies": {
5657
"@types/react": "^18.3.12",
@@ -59,8 +60,7 @@
5960
"astro-scripts": "workspace:*",
6061
"cheerio": "1.0.0",
6162
"react": "^18.3.1",
62-
"react-dom": "^18.3.1",
63-
"vite": "^5.4.10"
63+
"react-dom": "^18.3.1"
6464
},
6565
"peerDependencies": {
6666
"@types/react": "^17.0.50 || ^18.0.21",

‎packages/integrations/solid/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
"dev": "astro-scripts dev \"src/**/*.ts\""
3636
},
3737
"dependencies": {
38-
"vite-plugin-solid": "^2.10.2"
38+
"vite-plugin-solid": "^2.10.2",
39+
"vite": "^5.4.10"
3940
},
4041
"devDependencies": {
4142
"astro": "workspace:*",
4243
"astro-scripts": "workspace:*",
43-
"solid-js": "^1.9.3",
44-
"vite": "^5.4.10"
44+
"solid-js": "^1.9.3"
4545
},
4646
"peerDependencies": {
4747
"solid-devtools": "^0.30.1",

‎packages/integrations/svelte/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
},
4141
"dependencies": {
4242
"@sveltejs/vite-plugin-svelte": "^4.0.0",
43-
"svelte2tsx": "^0.7.22"
43+
"svelte2tsx": "^0.7.22",
44+
"vite": "^5.4.10"
4445
},
4546
"devDependencies": {
4647
"astro": "workspace:*",
4748
"astro-scripts": "workspace:*",
48-
"svelte": "^5.1.16",
49-
"vite": "^5.4.10"
49+
"svelte": "^5.1.16"
5050
},
5151
"peerDependencies": {
5252
"astro": "^4.0.0",

‎packages/integrations/vue/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
"@vitejs/plugin-vue": "^5.1.4",
4646
"@vitejs/plugin-vue-jsx": "^4.0.1",
4747
"@vue/compiler-sfc": "^3.5.12",
48-
"vite-plugin-vue-devtools": "^7.6.3"
48+
"vite-plugin-vue-devtools": "^7.6.3",
49+
"vite": "^5.4.10"
4950
},
5051
"devDependencies": {
5152
"astro": "workspace:*",
5253
"astro-scripts": "workspace:*",
5354
"cheerio": "1.0.0",
5455
"linkedom": "^0.18.5",
55-
"vite": "^5.4.10",
5656
"vue": "^3.5.12"
5757
},
5858
"peerDependencies": {

‎pnpm-lock.yaml

+15-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.