File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,10 @@ export default async function shadowBin(
47
47
constants . distShadowNpmInjectPath ,
48
48
// Lazily access constants.shadowBinPath.
49
49
await installLinks ( constants . shadowBinPath , binName ) ,
50
- // Add `--no-progress` and `--loglevel=error` flags to fix input being
51
- // swallowed by the npm spinner.
50
+ // Add `--no-progress` to fix input being swallowed by the npm spinner.
52
51
'--no-progress' ,
53
- // Add the '--loglevel=error ' flag if a loglevel flag is not provided.
54
- ...( binArgs . some ( isLoglevelFlag ) ? [ ] : [ '--loglevel' , 'error ' ] ) ,
52
+ // Add the '--loglevel=silent ' flag if a loglevel flag is not provided.
53
+ ...( binArgs . some ( isLoglevelFlag ) ? [ ] : [ '--loglevel' , 'silent ' ] ) ,
55
54
...binArgs ,
56
55
...otherArgs
57
56
] ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function safeNpmInstall(options?: SafeNpmInstallOptions) {
42
42
) . filter ( a => ! isAuditFlag ( a ) && ! isFundFlag ( a ) && ! isProgressFlag ( a ) )
43
43
const otherArgs = terminatorPos === - 1 ? [ ] : args . slice ( terminatorPos )
44
44
const isSilent = ! useDebug && ! npmArgs . some ( isLoglevelFlag )
45
- const logLevelArgs = isSilent ? [ '--loglevel' , 'error ' ] : [ ]
45
+ const logLevelArgs = isSilent ? [ '--loglevel' , 'silent ' ] : [ ]
46
46
const spawnPromise = spawn (
47
47
// Lazily access constants.execPath.
48
48
constants . execPath ,
@@ -67,10 +67,9 @@ export function safeNpmInstall(options?: SafeNpmInstallOptions) {
67
67
// Avoid code paths for 'audit' and 'fund'.
68
68
'--no-audit' ,
69
69
'--no-fund' ,
70
- // Add `--no-progress` flag to fix input being swallowed by the spinner
71
- // when running the command with recent versions of npm.
70
+ // Add `--no-progress` to fix input being swallowed by the npm spinner.
72
71
'--no-progress' ,
73
- // Add '--loglevel=error ' if a loglevel flag is not provided and the
72
+ // Add '--loglevel=silent ' if a loglevel flag is not provided and the
74
73
// SOCKET_CLI_DEBUG environment variable is not truthy.
75
74
...logLevelArgs ,
76
75
...npmArgs ,
You can’t perform that action at this time.
0 commit comments