Skip to content

Commit

Permalink
fix(powershell): pass args verbatim to npm/npx
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 bfa4ac6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions bin/npx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ if (Test-Path $NPM_PREFIX_NPX_CLI_JS) {

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

exit $LASTEXITCODE

0 comments on commit bfa4ac6

Please sign in to comment.