From e24c9faa901a9b36c4ee74a2544722c763251e99 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Nov 2022 17:24:37 -0500 Subject: [PATCH 1/3] chore(docs): update description of npm exec --- docs/lib/content/commands/npm-exec.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/lib/content/commands/npm-exec.md b/docs/lib/content/commands/npm-exec.md index f156a9c8382ee..c65641c375c75 100644 --- a/docs/lib/content/commands/npm-exec.md +++ b/docs/lib/content/commands/npm-exec.md @@ -26,10 +26,11 @@ specified multiple times, to execute the supplied command in an environment where all specified packages are available. If any requested packages are not present in the local project -dependencies, then they are installed to a folder in the npm cache, which -is added to the `PATH` environment variable in the executed process. A -prompt is printed (which can be suppressed by providing either `--yes` or -`--no`). +dependencies, then a prompt is printed, which can be suppressed by +providing either `--yes` or `--no`. When standard input is a TTY or a CI +environment is detected, `--yes` is assumed. The requested packages are +installed to a folder in the npm cache, which is added to the `PATH` +environment variable in the executed process. Package names provided without a specifier will be matched with whatever version exists in the local project. Package names with a specifier will From 7a82d19e48011d5f0952e5f2e0a18005107e24b1 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Nov 2022 17:40:03 -0500 Subject: [PATCH 2/3] "not" a TTY Co-authored-by: Gar --- docs/lib/content/commands/npm-exec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/lib/content/commands/npm-exec.md b/docs/lib/content/commands/npm-exec.md index c65641c375c75..b113e9e726c56 100644 --- a/docs/lib/content/commands/npm-exec.md +++ b/docs/lib/content/commands/npm-exec.md @@ -27,7 +27,7 @@ where all specified packages are available. If any requested packages are not present in the local project dependencies, then a prompt is printed, which can be suppressed by -providing either `--yes` or `--no`. When standard input is a TTY or a CI +providing either `--yes` or `--no`. When standard input is not a TTY or a CI environment is detected, `--yes` is assumed. The requested packages are installed to a folder in the npm cache, which is added to the `PATH` environment variable in the executed process. From 368e38933455faca206e2c0dca0278756464295a Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Nov 2022 17:40:59 -0500 Subject: [PATCH 3/3] Fix newline --- docs/lib/content/commands/npm-exec.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/lib/content/commands/npm-exec.md b/docs/lib/content/commands/npm-exec.md index b113e9e726c56..33fc1a08248ac 100644 --- a/docs/lib/content/commands/npm-exec.md +++ b/docs/lib/content/commands/npm-exec.md @@ -27,8 +27,8 @@ where all specified packages are available. If any requested packages are not present in the local project dependencies, then a prompt is printed, which can be suppressed by -providing either `--yes` or `--no`. When standard input is not a TTY or a CI -environment is detected, `--yes` is assumed. The requested packages are +providing either `--yes` or `--no`. When standard input is not a TTY or a +CI environment is detected, `--yes` is assumed. The requested packages are installed to a folder in the npm cache, which is added to the `PATH` environment variable in the executed process.