Skip to content

Commit 29fb088

Browse files
Merge pull request #33236 from huang-julien/docs/update_contributing_md
Docs: Update watch mode cli command examples in the contribution guidelines
2 parents 0918cb5 + a0a32ae commit 29fb088

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ If you want to make code changes to Storybook packages while running a sandbox,
160160

161161
1. In a second terminal, run `yarn build --watch <package-1> <package-2>` in the `code/` directory.
162162

163-
For example, if you want to build the `@storybook/react`, `@storybook/core-server`, `@storybook/api`, and `@storybook/addon-docs` packages, you would run:
163+
For example, to build the `@storybook/react`, `storybook` itself, `@storybook/builder-vite`, and `@storybook/addon-docs` packages, you would run:
164164

165165
```shell
166166
# Navigate to the code directory
@@ -171,10 +171,11 @@ yarn build --watch react core-server api addon-docs
171171

172172
Most package names can be found after `@storybook/` in the published package.
173173

174-
For instance, to build the `@storybook/react @storybook/core-server @storybook/api @storybook/addon-docs` packages at the same time in watch mode:
174+
For instance, to build the `@storybook/react storybook @storybook/builder-vite @storybook/addon-docs` packages at the same time in watch mode:
175175

176176
```shell
177-
cd code yarn build --watch react core-server api addon-docs
177+
cd code
178+
yarn build --watch react storybook builder-vite addon-docs
178179
```
179180

180181
2. If you are running the sandbox in ["linked"](https://yarnpkg.com/cli/link) mode (the default), you should see the changes reflected on a refresh (you may need to restart it if changing server packages)
@@ -198,7 +199,7 @@ yarn task --prod
198199

199200
```shell
200201
# Builds the specified packages in production mode
201-
yarn build --prod --watch angular core addon-docs
202+
yarn build --prod --watch angular storybook addon-docs
202203
```
203204

204205
### Running against different sandbox templates

0 commit comments

Comments
 (0)