Skip to content

Commit

Permalink
Address PR feedback from #20390
Browse files Browse the repository at this point in the history
  • Loading branch information
KrofDrakula committed Dec 29, 2022
1 parent 40eb3dd commit 4f6b320
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 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

0 comments on commit 4f6b320

Please sign in to comment.