Skip to content

Commit

Permalink
Merge pull request #13411 from philsawicki/patch-1
Browse files Browse the repository at this point in the history
Provide more precise usage of `npx sb extract`
  • Loading branch information
shilman authored Mar 13, 2021
2 parents e0fecd0 + a26812a commit 6c0919a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/workflows/storybook-composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,13 @@ Once you add a reference to a Storybook deployed using this method, almost immed
If required, you can also add additional arguments to this command. You can use the following to generate the `stories.json` file to a custom directory:

```shell
npx sb extract my-built-storybook-directory my-other-directory
npx sb extract my-built-storybook-directory my-other-directory/stories.json
```

Once the command executes it will look for a built Storybook in the `my-built-storybook-directory` and create the file in `my-other-directory`.
Once the command executes it will look for a built Storybook in the `my-built-storybook-directory` and create the `stories.json` file in `my-other-directory`.

<div class="aside">

If you need to use arguments, you'll need to use both of them, or the command will not be executed properly.

</div>



0 comments on commit 6c0919a

Please sign in to comment.