From 9cb942a7d84e8378e5f120fac80f6a70842b47b4 Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Sat, 20 Jul 2024 15:05:08 -0400 Subject: [PATCH 1/2] doc: fix documentation for `--run` --- doc/api/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index df381f80c51ea7..3bae18ee46889d 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -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. `--run` will traverse up to the root directory and finds a `package.json` file to run the command from. From 4de6ca12fd9486d1604c1336cb55d393d31f20cd Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Sat, 20 Jul 2024 19:32:30 -0400 Subject: [PATCH 2/2] Update cli.md Co-authored-by: Yagiz Nizipli --- doc/api/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 3bae18ee46889d..d00491efe74bd8 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2017,7 +2017,7 @@ changes: > Stability: 1.2 - Release candidate This runs a specified command from a package.json's `"scripts"` object. -If an invalid `"command"` is provided, it will list the available scripts. +If a missing `"command"` is provided, it will list the available scripts. `--run` will traverse up to the root directory and finds a `package.json` file to run the command from.