Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code example of framework standalone build #22102

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Update code example of framework standalone build #22102

merged 1 commit into from
Apr 18, 2023

Conversation

joeycozza
Copy link
Contributor

@joeycozza joeycozza commented Apr 14, 2023

build is now exported from core-server since 7.0.0-beta.25.

https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md#bug-fixes-54

https://github.com/storybookjs/storybook/blob/main/code/lib/core-server/src/index.ts#L9

This PR fixes the code example to require it correctly. Also, the example of old usage wasn't correct either, so I updated that too.

Closes #

What I did

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

`build` is now exported from core-server since 7.0.0-beta.25. 

https://github.com/storybookjs/storybook/blob/main/CHANGELOG.md#bug-fixes-52

https://github.com/storybookjs/storybook/blob/main/code/lib/core-server/src/index.ts#L9

This PR fixes the code example to `require` it correctly. Also, the example of old usage wasn't correct either, so I updated that too.
@jonniebigodes jonniebigodes added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Apr 18, 2023
@jonniebigodes
Copy link
Contributor

@joeycozza thanks for taking the time to put together this small but rather important pull request and update our Migration documentation. Appreciate it 🙏 ! I've checked and all is good on my end. Going to merge this one once the checklist clears.

Hope you have a great day.

Stay safe

@jonniebigodes jonniebigodes merged commit b7bd999 into storybookjs:next Apr 18, 2023
@joeycozza joeycozza deleted the patch-3 branch April 18, 2023 20:35
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Apr 24, 2023
shilman pushed a commit that referenced this pull request Apr 24, 2023
Update code example of framework standalone build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants