From 58aa1c2fd002f4b6fe76e1906d172b09f74dbd63 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 30 Sep 2022 01:26:57 +0800 Subject: [PATCH] Add partial pnpm support per vite frameworks --- code/frameworks/web-components-vite/package.json | 6 ++++++ code/frameworks/web-components-vite/src/index.ts | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/code/frameworks/web-components-vite/package.json b/code/frameworks/web-components-vite/package.json index afd49078948..d8285652806 100644 --- a/code/frameworks/web-components-vite/package.json +++ b/code/frameworks/web-components-vite/package.json @@ -51,8 +51,14 @@ "prep": "../../../scripts/prepare/bundle.ts" }, "dependencies": { + "@storybook/addons": "7.0.0-alpha.34", "@storybook/builder-vite": "7.0.0-alpha.34", + "@storybook/channel-postmessage": "7.0.0-alpha.34", + "@storybook/channel-websocket": "7.0.0-alpha.34", + "@storybook/client-api": "7.0.0-alpha.34", "@storybook/core-server": "7.0.0-alpha.34", + "@storybook/node-logger": "7.0.0-alpha.34", + "@storybook/preview-web": "7.0.0-alpha.34", "@storybook/web-components": "7.0.0-alpha.34", "@vitejs/plugin-vue": "^3.0.3", "magic-string": "^0.26.1", diff --git a/code/frameworks/web-components-vite/src/index.ts b/code/frameworks/web-components-vite/src/index.ts index 098e54d925d..535432f3e0d 100644 --- a/code/frameworks/web-components-vite/src/index.ts +++ b/code/frameworks/web-components-vite/src/index.ts @@ -1,2 +1,9 @@ +// exports for builder-vite +export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage'; +export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket'; +export { addons } from '@storybook/addons'; +export { composeConfigs, PreviewWeb } from '@storybook/preview-web'; +export { ClientApi } from '@storybook/client-api'; + export * from '@storybook/web-components'; export type { StorybookConfig } from '@storybook/builder-vite';