From 834368b965d9aa9710a6f71fab7ea20f32dc8005 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Fri, 29 Nov 2024 16:11:41 +0100 Subject: [PATCH] React-Vite: Add @storybook/test as optional peer dependency --- code/frameworks/react-vite/package.json | 6 ++++++ code/yarn.lock | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/code/frameworks/react-vite/package.json b/code/frameworks/react-vite/package.json index 3d9030cdc1ba..5bb7801cadce 100644 --- a/code/frameworks/react-vite/package.json +++ b/code/frameworks/react-vite/package.json @@ -63,11 +63,17 @@ "vite": "^4.0.0" }, "peerDependencies": { + "@storybook/test": "workspace:*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "workspace:^", "vite": "^4.0.0 || ^5.0.0 || ^6.0.0" }, + "peerDependenciesMeta": { + "@storybook/test": { + "optional": true + } + }, "engines": { "node": ">=18.0.0" }, diff --git a/code/yarn.lock b/code/yarn.lock index 684f8f1118e2..6cda007e4ff4 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -7133,10 +7133,14 @@ __metadata: typescript: "npm:^5.3.2" vite: "npm:^4.0.0" peerDependencies: + "@storybook/test": "workspace:*" react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: "workspace:^" vite: ^4.0.0 || ^5.0.0 || ^6.0.0 + peerDependenciesMeta: + "@storybook/test": + optional: true languageName: unknown linkType: soft