Skip to content

doc: clarify --watch and --watch-path usage with --run #58334

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,10 @@ different folders where multiple `node_modules` directories are present, if

`--run` executes the command in the directory containing the related `package.json`.

Note: This option only has an effect when used with either `--watch` or `--watch-path`.
Without one of these flags, `--run` will be ignored during process restarts.


For example, the following command will run the `test` script of
the `package.json` in the current folder:

Expand Down