Skip to content

Commit

Permalink
fix(powershell): pass args verbatim to npm
Browse files Browse the repository at this point in the history
Fixes #7375
  • Loading branch information
lukekarrys committed Apr 30, 2024
1 parent 2558283 commit 0d32dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/npm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ if (Test-Path $NPM_PREFIX_NPM_CLI_JS) {

# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & $NODE_EXE $NPM_CLI_JS $args
$input | & $NODE_EXE $NPM_CLI_JS -- $args
} else {
& $NODE_EXE $NPM_CLI_JS $args
& $NODE_EXE $NPM_CLI_JS -- $args
}

exit $LASTEXITCODE

0 comments on commit 0d32dc2

Please sign in to comment.