Skip to content

Commit

Permalink
fix: use splatting to pass arguments from a powershell scope
Browse files Browse the repository at this point in the history
May resolve issue #7375
  • Loading branch information
farhanalam committed Jan 15, 2025
1 parent 866b5ee commit 6a3827e
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 6a3827e

Please sign in to comment.