Skip to content

Commit

Permalink
chore(example): update storybook (#60737)
Browse files Browse the repository at this point in the history
### What?

- update storybook version
- use `SWC` for perf
- pinging dep for security of the example
- update readme to have correct link

Co-authored-by: Sam Ko <[email protected]>
  • Loading branch information
AugustinMauroy and samcx authored Jan 17, 2024
1 parent 0c1741c commit c028271
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion examples/with-storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const config: StorybookConfig = {
],
framework: {
name: "@storybook/nextjs",
options: {},
options: {
builder: {
useSWC: true,
},
},
},
docs: {
autodocs: "tag",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-storybook/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Example app with Storybook

This example shows a default set up of Storybook using [storybook-addon-next](https://github.com/RyanClementsHax/storybook-addon-next). Included in this example are stories that demonstrate the ability to use Next.js features in Storybook.
This example shows a default set up of Storybook using [`@storybook/nextjs`](https://www.npmjs.com/package/@storybook/nextjs). Included in this example are stories that demonstrate the ability to use Next.js features in Storybook.

### TypeScript

Expand Down
14 changes: 7 additions & 7 deletions examples/with-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"typescript": "5.0.4"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.0.6",
"@storybook/addon-interactions": "^7.0.6",
"@storybook/addon-links": "^7.0.6",
"@storybook/blocks": "^7.0.6",
"@storybook/nextjs": "^7.0.6",
"@storybook/react": "^7.0.6",
"@storybook/addon-essentials": "~7.6.8",
"@storybook/addon-interactions": "~7.6.8",
"@storybook/addon-links": "~7.6.8",
"@storybook/blocks": "~7.6.8",
"@storybook/nextjs": "~7.6.8",
"@storybook/react": "~ 7.6.8",
"@storybook/testing-library": "^0.0.14-next.2",
"storybook": "^7.0.6"
"storybook": "~7.6.8"
},
"engines": {
"node": ">=16"
Expand Down

0 comments on commit c028271

Please sign in to comment.