File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,13 @@ export default async function shadowBin(
26
26
await installLinks ( constants . shadowBinPath , binName ) ,
27
27
...( binName === NPM && binArgs . includes ( 'install' )
28
28
? [
29
- // Add the `--quiet` and `--no-progress` flags to fix input being swallowed
30
- // by the spinner when running the command with recent versions of npm.
29
+ // Add the `--quiet` and `--no-progress` flags to fix input being
30
+ // swallowed by the spinner when running the command with recent
31
+ // versions of npm.
31
32
...binArgs . filter ( a => a !== '--progress' && a !== '--no-progress' ) ,
32
33
'--no-progress' ,
34
+ // Add the '--quiet' flag if an equivalent flag is not provided.
35
+ // https://docs.npmjs.com/cli/v11/using-npm/logging#aliases
33
36
...( binArgs . includes ( '-q' ) ||
34
37
binArgs . includes ( '--quiet' ) ||
35
38
binArgs . includes ( '-s' ) ||
Original file line number Diff line number Diff line change @@ -55,9 +55,12 @@ export function shadowNpmInstall(opts?: ShadowNpmInstallOptions) {
55
55
// when running the command with recent versions of npm.
56
56
'--no-progress' ,
57
57
...( useDebug ||
58
+ // Detect loglevel flags:
58
59
flags . some (
59
60
f =>
61
+ // https://docs.npmjs.com/cli/v11/using-npm/logging#setting-log-levels
60
62
f . startsWith ( '--loglevel' ) ||
63
+ // https://docs.npmjs.com/cli/v11/using-npm/logging#aliases
61
64
f === '-d' ||
62
65
f === '--dd' ||
63
66
f === '--ddd' ||
You can’t perform that action at this time.
0 commit comments