From ca28221103aa0e9ccba7043ac515a541b625c53a Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 3 Jun 2021 10:14:04 -0700 Subject: [PATCH] fix(docs): link foreground-scripts w/ loglevel Since loglevel is the first place people usually look to find out why their scripts have no output when they are in the background, this will help point them to the config that addresses that situation. PR-URL: https://github.com/npm/cli/pull/3360 Credit: @wraithgar Close: #3360 Reviewed-by: @isaacs --- docs/content/using-npm/config.md | 2 ++ lib/utils/config/definitions.js | 2 ++ tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md index 25b4d424e82ff..44b79a801f15e 100644 --- a/docs/content/using-npm/config.md +++ b/docs/content/using-npm/config.md @@ -776,6 +776,8 @@ What level of logs to report. On failure, *all* logs are written to Any logs of a higher level than the setting are shown. The default is "notice". +See also the `foreground-scripts` config. + #### `logs-max` * Default: 10 diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index 22fff38787d7b..ea9665b5431f5 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -1128,6 +1128,8 @@ define('loglevel', { Any logs of a higher level than the setting are shown. The default is "notice". + + See also the \`foreground-scripts\` config. `, }) diff --git a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs index 48aea03030c1e..da8cd1794f2ac 100644 --- a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs @@ -655,6 +655,8 @@ What level of logs to report. On failure, *all* logs are written to Any logs of a higher level than the setting are shown. The default is "notice". +See also the \`foreground-scripts\` config. + #### \`logs-max\` * Default: 10