fix(types): Allow providing either vite@5 or vite@6 for the peer dependency (#11581)

**What**
- The types package has an optional peerDep on vite@5. This causes issues if the package is installed in a repo that has vite@6 installed. An example could be a `react-router/remix` storefront.
- Loosen the dependency to accept either vite@5 or vite@6.

Resolves SUP-970
This commit is contained in:
Kasper Fabricius Kristensen
2025-02-25 19:59:38 +01:00
committed by GitHub
parent 8bb0a25f57
commit d814d9540e
3 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(types): Allow providing either vite@5 or vite@6 for the peer dependency

View File

@@ -45,7 +45,7 @@
"peerDependencies": {
"awilix": "^8.0.1",
"ioredis": "^5.4.1",
"vite": "^5.4.14"
"vite": "^5 || ^6"
},
"peerDependenciesMeta": {
"ioredis": {

View File

@@ -6662,7 +6662,7 @@ __metadata:
peerDependencies:
awilix: ^8.0.1
ioredis: ^5.4.1
vite: ^5.4.14
vite: ^5 || ^6
peerDependenciesMeta:
ioredis:
optional: true