diff --git a/docs/contribute/code.md b/docs/contribute/code.md index e73c353743c..0c114960da4 100644 --- a/docs/contribute/code.md +++ b/docs/contribute/code.md @@ -59,7 +59,7 @@ yarn build When asked if you want to start the build in `watch` mode, answer **yes** to develop in interactive mode. Afterward, choose which packages you want to build. For example, if you're going to work on a feature for `@storybook/addon-docs`, you might want to select `@storybook/addon-docs` and `@storybook/components`.
watch
mode is great for interactive development. However, for performance reasons it only transpiles your code and doesn't execute the TypeScript compiler. If something isn't working as expected, try running build
WITHOUT watch mode: it will re-generate TypeScript types and also perform type checking for you.
sb link
command relies on yarn 2
linking under the hood. It requires that the local repro is using yarn 2
, which will be the case if you're using the [sb repro
command](./how-to-reproduce) per our contributing guidelines. If you are trying to link to a non-yarn 2
project, linking will fail.
yarn build --all --watch
watches everything but is resource-intensive