Skip to content

Commit

Permalink
Merge pull request #20432 from storybookjs/follow-up-20390
Browse files Browse the repository at this point in the history
Preact-Vite: Minor readme and dependency cleanups
  • Loading branch information
IanVS authored Dec 30, 2022
2 parents 811bb61 + 7eb9a27 commit 1cf5f17
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
5 changes: 2 additions & 3 deletions code/frameworks/preact-vite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

### In a project without Storybook

Follow the prompts after running this command in your Next.js project's root directory:
Follow the prompts after running this command in your Preact project's root directory:

```bash
npx storybook@next init
Expand Down Expand Up @@ -40,8 +40,7 @@ Update your `main.js` to change the framework property:
module.exports = {
// ...
framework: {
// name: '@storybook/react-webpack5', // Remove this
name: '@storybook/preact-vite', // Add this
name: '@storybook/preact-vite', // <- Change this
options: {},
},
};
Expand Down
15 changes: 4 additions & 11 deletions code/frameworks/preact-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": {
"require": "./package.json",
"import": "./package.json",
"types": "./package.json"
}
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand All @@ -51,12 +47,9 @@
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@preact/preset-vite": "^2.5.0",
"@rollup/pluginutils": "^4.2.0",
"@preact/preset-vite": "^2.0.0",
"@storybook/builder-vite": "7.0.0-beta.16",
"@storybook/preact": "7.0.0-beta.16",
"ast-types": "^0.14.2",
"magic-string": "^0.26.1"
"@storybook/preact": "7.0.0-beta.16"
},
"devDependencies": {
"@types/node": "^16.0.0",
Expand All @@ -68,7 +61,7 @@
"vite": "^3.0.0 || ^4.0.0"
},
"engines": {
"node": "^14.18 || >=16"
"node": ">=16"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"vite": "^3.0.0 || ^4.0.0"
},
"engines": {
"node": "^14.18 || >=16"
"node": ">=16"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 2 additions & 5 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5193,7 +5193,7 @@ __metadata:
languageName: node
linkType: hard

"@preact/preset-vite@npm:^2.5.0":
"@preact/preset-vite@npm:^2.0.0":
version: 2.5.0
resolution: "@preact/preset-vite@npm:2.5.0"
dependencies:
Expand Down Expand Up @@ -6891,13 +6891,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@storybook/preact-vite@workspace:frameworks/preact-vite"
dependencies:
"@preact/preset-vite": ^2.5.0
"@rollup/pluginutils": ^4.2.0
"@preact/preset-vite": ^2.0.0
"@storybook/builder-vite": 7.0.0-beta.16
"@storybook/preact": 7.0.0-beta.16
"@types/node": ^16.0.0
ast-types: ^0.14.2
magic-string: ^0.26.1
typescript: ~4.9.3
vite: ^4.0.0
peerDependencies:
Expand Down

0 comments on commit 1cf5f17

Please sign in to comment.