Skip to content

Commit

Permalink
Remove storybook re-exports from vite frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Nov 28, 2022
1 parent afcadb7 commit 8e929c8
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 69 deletions.
3 changes: 0 additions & 3 deletions code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.0.5",
"@rollup/pluginutils": "^4.2.0",
"@storybook/builder-vite": "7.0.0-alpha.54",
"@storybook/channel-postmessage": "7.0.0-alpha.54",
"@storybook/channel-websocket": "7.0.0-alpha.54",
"@storybook/preview-api": "7.0.0-alpha.54",
"@storybook/react": "7.0.0-alpha.54",
"@vitejs/plugin-react": "^2.0.0",
"ast-types": "^0.14.2",
Expand Down
10 changes: 0 additions & 10 deletions code/frameworks/react-vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
// TODO: figure out if any of this is required
// possibly make it not required, framework should never be imported directly, except for types in config files

export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';

export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-api';
export { ClientApi } from '@storybook/preview-api';

export type { StorybookConfig } from '@storybook/builder-vite';
3 changes: 0 additions & 3 deletions code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@
"dependencies": {
"@storybook/addon-svelte-csf": "^2.0.0",
"@storybook/builder-vite": "7.0.0-alpha.54",
"@storybook/channel-postmessage": "7.0.0-alpha.54",
"@storybook/channel-websocket": "7.0.0-alpha.54",
"@storybook/node-logger": "7.0.0-alpha.54",
"@storybook/preview-api": "7.0.0-alpha.54",
"@storybook/svelte": "7.0.0-alpha.54",
"@sveltejs/vite-plugin-svelte": "^1.0.0",
"magic-string": "^0.26.1",
Expand Down
7 changes: 0 additions & 7 deletions code/frameworks/svelte-vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';

export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-api';
export { ClientApi } from '@storybook/preview-api';

export type { StorybookConfig } from '@storybook/builder-vite';
3 changes: 0 additions & 3 deletions code/frameworks/vue-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@
},
"dependencies": {
"@storybook/builder-vite": "7.0.0-alpha.54",
"@storybook/channel-postmessage": "7.0.0-alpha.54",
"@storybook/channel-websocket": "7.0.0-alpha.54",
"@storybook/core-common": "7.0.0-alpha.54",
"@storybook/core-server": "7.0.0-alpha.54",
"@storybook/preview-api": "7.0.0-alpha.54",
"@storybook/vue": "7.0.0-alpha.54",
"magic-string": "^0.26.1",
"vite": "^3.1.3",
Expand Down
7 changes: 0 additions & 7 deletions code/frameworks/vue-vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';

export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-api';
export { ClientApi } from '@storybook/preview-api';

export type { StorybookConfig } from '@storybook/builder-vite';
3 changes: 0 additions & 3 deletions code/frameworks/vue3-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@
},
"dependencies": {
"@storybook/builder-vite": "7.0.0-alpha.54",
"@storybook/channel-postmessage": "7.0.0-alpha.54",
"@storybook/channel-websocket": "7.0.0-alpha.54",
"@storybook/core-server": "7.0.0-alpha.54",
"@storybook/preview-api": "7.0.0-alpha.54",
"@storybook/vue3": "7.0.0-alpha.54",
"@vitejs/plugin-vue": "^3.0.0",
"magic-string": "^0.26.1",
Expand Down
7 changes: 0 additions & 7 deletions code/frameworks/vue3-vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';

export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-api';
export { ClientApi } from '@storybook/preview-api';

export type { StorybookConfig } from '@storybook/builder-vite';
3 changes: 0 additions & 3 deletions code/frameworks/web-components-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@
},
"dependencies": {
"@storybook/builder-vite": "7.0.0-alpha.54",
"@storybook/channel-postmessage": "7.0.0-alpha.54",
"@storybook/channel-websocket": "7.0.0-alpha.54",
"@storybook/core-server": "7.0.0-alpha.54",
"@storybook/node-logger": "7.0.0-alpha.54",
"@storybook/preview-api": "7.0.0-alpha.54",
"@storybook/web-components": "7.0.0-alpha.54",
"magic-string": "^0.26.1",
"vite": "3"
Expand Down
7 changes: 0 additions & 7 deletions code/frameworks/web-components-vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
export { createChannel as createPostMessageChannel } from '@storybook/channel-postmessage';
export { createChannel as createWebSocketChannel } from '@storybook/channel-websocket';

export { addons } from '@storybook/preview-api';
export { composeConfigs, PreviewWeb } from '@storybook/preview-api';
export { ClientApi } from '@storybook/preview-api';

export type { StorybookConfig } from '@storybook/builder-vite';
16 changes: 0 additions & 16 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5874,7 +5874,6 @@ __metadata:
resolution: "@storybook/builder-vite@workspace:lib/builder-vite"
dependencies:
"@joshwooding/vite-plugin-react-docgen-typescript": 0.0.5
"@storybook/addons": 7.0.0-alpha.54
"@storybook/client-api": 7.0.0-alpha.54
"@storybook/client-logger": 7.0.0-alpha.54
"@storybook/core-common": 7.0.0-alpha.54
Expand Down Expand Up @@ -6997,9 +6996,6 @@ __metadata:
"@joshwooding/vite-plugin-react-docgen-typescript": ^0.0.5
"@rollup/pluginutils": ^4.2.0
"@storybook/builder-vite": 7.0.0-alpha.54
"@storybook/channel-postmessage": 7.0.0-alpha.54
"@storybook/channel-websocket": 7.0.0-alpha.54
"@storybook/preview-api": 7.0.0-alpha.54
"@storybook/react": 7.0.0-alpha.54
"@types/node": ^16.0.0
"@vitejs/plugin-react": ^2.0.0
Expand Down Expand Up @@ -7448,10 +7444,7 @@ __metadata:
dependencies:
"@storybook/addon-svelte-csf": ^2.0.0
"@storybook/builder-vite": 7.0.0-alpha.54
"@storybook/channel-postmessage": 7.0.0-alpha.54
"@storybook/channel-websocket": 7.0.0-alpha.54
"@storybook/node-logger": 7.0.0-alpha.54
"@storybook/preview-api": 7.0.0-alpha.54
"@storybook/svelte": 7.0.0-alpha.54
"@sveltejs/vite-plugin-svelte": ^1.0.0
"@types/node": ^16.0.0
Expand Down Expand Up @@ -7604,11 +7597,8 @@ __metadata:
resolution: "@storybook/vue-vite@workspace:frameworks/vue-vite"
dependencies:
"@storybook/builder-vite": 7.0.0-alpha.54
"@storybook/channel-postmessage": 7.0.0-alpha.54
"@storybook/channel-websocket": 7.0.0-alpha.54
"@storybook/core-common": 7.0.0-alpha.54
"@storybook/core-server": 7.0.0-alpha.54
"@storybook/preview-api": 7.0.0-alpha.54
"@storybook/vue": 7.0.0-alpha.54
magic-string: ^0.26.1
typescript: ^4.9.3
Expand Down Expand Up @@ -7650,10 +7640,7 @@ __metadata:
resolution: "@storybook/vue3-vite@workspace:frameworks/vue3-vite"
dependencies:
"@storybook/builder-vite": 7.0.0-alpha.54
"@storybook/channel-postmessage": 7.0.0-alpha.54
"@storybook/channel-websocket": 7.0.0-alpha.54
"@storybook/core-server": 7.0.0-alpha.54
"@storybook/preview-api": 7.0.0-alpha.54
"@storybook/vue3": 7.0.0-alpha.54
"@types/node": ^16.0.0
"@vitejs/plugin-vue": ^3.0.0
Expand Down Expand Up @@ -7747,11 +7734,8 @@ __metadata:
resolution: "@storybook/web-components-vite@workspace:frameworks/web-components-vite"
dependencies:
"@storybook/builder-vite": 7.0.0-alpha.54
"@storybook/channel-postmessage": 7.0.0-alpha.54
"@storybook/channel-websocket": 7.0.0-alpha.54
"@storybook/core-server": 7.0.0-alpha.54
"@storybook/node-logger": 7.0.0-alpha.54
"@storybook/preview-api": 7.0.0-alpha.54
"@storybook/web-components": 7.0.0-alpha.54
"@types/node": ^16.0.0
magic-string: ^0.26.1
Expand Down

0 comments on commit 8e929c8

Please sign in to comment.