diff options
author | Gar <gar+gh@danger.computer> | 2021-06-03 20:14:04 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-06-03 21:45:15 +0300 |
commit | ca28221103aa0e9ccba7043ac515a541b625c53a (patch) | |
tree | 47743a51d32395fc4a58cc3039439851f63160a5 | |
parent | aafe2357279230e333d3342752a28fce6b9cd152 (diff) |
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
-rw-r--r-- | docs/content/using-npm/config.md | 2 | ||||
-rw-r--r-- | lib/utils/config/definitions.js | 2 | ||||
-rw-r--r-- | tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md index 25b4d424e..44b79a801 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 22fff3878..ea9665b54 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 48aea0303..da8cd1794 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 |