-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc: fix documentation for --run
#53976
Conversation
doc/api/cli.md
Outdated
@@ -2017,7 +2017,7 @@ changes: | |||
> Stability: 1.2 - Release candidate | |||
|
|||
This runs a specified command from a package.json's `"scripts"` object. | |||
If no `"command"` is provided, it will list the available scripts. | |||
If an invalid `"command"` is provided, it will list the available scripts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If an invalid `"command"` is provided, it will list the available scripts. | |
If a missing `"command"` is provided, it will list the available scripts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "invalid" is better. node --run
is still missing a command so it is not different from the original wording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "If there is not a matching "command", it will list the available scripts."?
Co-authored-by: Yagiz Nizipli <yagiz@nizipli.com>
Landed in 4b8000c |
PR-URL: #53976 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
PR-URL: #53976 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Fixes #53944