Skip to content

Commit ed3541e

Browse files
janoshwardpeet
authored andcommitted
docs(fix): update yarn run watch --scope option (#14014)
Using double dash to forward options emits the following warning: ```sh warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts. ```
1 parent 1f0e0f4 commit ed3541e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/contributing/setting-up-your-local-dev-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Yarn is a package manager for your code, similar to [NPM](https://www.npmjs.com/
2828
- Create a topic branch: `git checkout -b topics/new-feature-name`
2929
- See [docs setup instructions](/contributing/docs-contributions#docs-site-setup-instructions) below for docs-only changes.
3030
- Run `yarn run watch` from the root of the repo to watch for changes to packages' source code and compile these changes on-the-fly as you work.
31-
- Note that the watch command can be resource intensive. To limit it to the packages you're working on, add a scope flag, like `yarn run watch -- --scope={gatsby,gatsby-cli}`.
32-
- To watch just one package, run `yarn run watch -- --scope=gatsby`.
31+
- Note that the watch command can be resource intensive. To limit it to the packages you're working on, add a scope flag, like `yarn run watch --scope={gatsby,gatsby-cli}`.
32+
- To watch just one package, run `yarn run watch --scope=gatsby`.
3333
- Install [gatsby-dev-cli](/packages/gatsby-dev-cli/) globally: `yarn global add gatsby-dev-cli`
3434
- Run `yarn install` in each of the sites you're testing.
3535
- For each of your Gatsby test sites, run the `gatsby-dev` command inside the test site's directory to copy

0 commit comments

Comments
 (0)