Skip to content
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