Skip to content

Commit

Permalink
Merge pull request #19035 from storybookjs/vite-framework-deps
Browse files Browse the repository at this point in the history
Vite: Clean up framework dependencies / unused files
  • Loading branch information
shilman authored Aug 29, 2022
2 parents eaac795 + 0cb5f7c commit 65e3093
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 342 deletions.
5 changes: 2 additions & 3 deletions code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@storybook/react-vite",
"version": "7.0.0-alpha.26",
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
"keywords": [
"storybook"
],
Expand Down Expand Up @@ -54,7 +54,6 @@
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.0.5",
"@rollup/pluginutils": "^4.2.0",
"@storybook/builder-vite": "7.0.0-alpha.26",
"@storybook/core-server": "7.0.0-alpha.26",
"@storybook/react": "7.0.0-alpha.26",
"@vitejs/plugin-react": "^2.0.1",
"ast-types": "^0.14.2",
Expand All @@ -70,7 +69,7 @@
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"engines": {
"node": ">=10.13.0"
"node": "^14.18 || >=16"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 0 additions & 3 deletions code/frameworks/react-vite/src/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
declare module '@storybook/semver';
declare module 'global';

// TODO: Replace, as soon as @types/react-dom 17.0.14 is used
// Source: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/fb0f14b7a35cde26ffaa82e7536c062e593e9ae6/types/react-dom/client.d.ts
declare module 'react-dom/client' {
Expand Down
26 changes: 3 additions & 23 deletions code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@storybook/svelte-vite",
"version": "7.0.0-alpha.26",
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
"description": "Storybook for Svelte and Vite: Develop Svelte components in isolation with Hot Reloading.",
"keywords": [
"storybook"
],
Expand Down Expand Up @@ -51,42 +51,22 @@
"prepare": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@rollup/pluginutils": "^4.2.0",
"@storybook/addon-svelte-csf": "^2.0.0",
"@storybook/builder-vite": "7.0.0-alpha.26",
"@storybook/core-server": "7.0.0-alpha.26",
"@storybook/node-logger": "7.0.0-alpha.26",
"@storybook/svelte": "7.0.0-alpha.26",
"@sveltejs/vite-plugin-svelte": "^1.0.0",
"@types/node": "^14.14.20 || ^16.0.0",
"@vitejs/plugin-react": "^1.0.8",
"ast-types": "^0.14.2",
"core-js": "^3.8.2",
"magic-string": "^0.26.1",
"regenerator-runtime": "^0.13.7",
"svelte": "^3.0.0",
"sveltedoc-parser": "^4.2.1",
"vite": "3"
},
"devDependencies": {
"jest-specific-snapshot": "^4.0.0",
"@types/node": "^14.14.20 || ^16.0.0",
"typescript": "~4.6.3"
},
"peerDependencies": {
"@babel/core": "^7.11.5",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"typescript": {
"optional": true
}
},
"engines": {
"node": ">=10.13.0"
"node": "^14.18 || >=16"
},
"publishConfig": {
"access": "public"
Expand Down
46 changes: 0 additions & 46 deletions code/frameworks/svelte-vite/src/typings.d.ts

This file was deleted.

25 changes: 3 additions & 22 deletions code/frameworks/vue3-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@storybook/vue3-vite",
"version": "7.0.0-alpha.26",
"description": "Storybook for Vue3: Develop Vue3 Component in isolation with Hot Reloading.",
"description": "Storybook for Vue3 and Vite: Develop Vue3 components in isolation with Hot Reloading.",
"keywords": [
"storybook"
],
Expand Down Expand Up @@ -51,39 +51,20 @@
"prepare": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@rollup/pluginutils": "^4.2.0",
"@storybook/builder-vite": "7.0.0-alpha.26",
"@storybook/core-server": "7.0.0-alpha.26",
"@storybook/vue3": "7.0.0-alpha.26",
"@types/node": "^14.14.20 || ^16.0.0",
"@vitejs/plugin-vue": "^3.0.3",
"ast-types": "^0.14.2",
"core-js": "^3.8.2",
"magic-string": "^0.26.1",
"react-docgen": "6.0.0-alpha.1",
"regenerator-runtime": "^0.13.7",
"vite": "3",
"vue-docgen-api": "^4.40.0"
},
"devDependencies": {
"jest-specific-snapshot": "^4.0.0",
"@types/node": "^14.14.20 || ^16.0.0",
"typescript": "~4.6.3"
},
"peerDependencies": {
"@babel/core": "^7.11.5",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"typescript": {
"optional": true
}
},
"engines": {
"node": ">=10.13.0"
"node": "^14.18 || >=16"
},
"publishConfig": {
"access": "public"
Expand Down

This file was deleted.

46 changes: 0 additions & 46 deletions code/frameworks/vue3-vite/src/typings.d.ts

This file was deleted.

Loading

0 comments on commit 65e3093

Please sign in to comment.