File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ if ($MyInvocation.Line) { # used "-Command" argument
3737
3838 # Support pipeline input
3939 if ($MyInvocation.ExpectingInput ) {
40- $input | Invoke-Expression " & `" $NODE_EXE `" `" $NPM_CLI_JS `" $NPM_ARGS "
40+ $input = (@ ($input ) -join " `n " ).Replace(" `` " , " ```` " )
41+
42+ Invoke-Expression " Write-Output `" $input `" | & `" $NODE_EXE `" `" $NPM_CLI_JS `" $NPM_ARGS "
4143 } else {
4244 Invoke-Expression " & `" $NODE_EXE `" `" $NPM_CLI_JS `" $NPM_ARGS "
4345 }
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ if ($MyInvocation.Line) { # used "-Command" argument
3737
3838 # Support pipeline input
3939 if ($MyInvocation.ExpectingInput ) {
40- $input | Invoke-Expression " & `" $NODE_EXE `" `" $NPX_CLI_JS `" $NPX_ARGS "
40+ $input = (@ ($input ) -join " `n " ).Replace(" `` " , " ```` " )
41+
42+ Invoke-Expression " Write-Output `" $input `" | & `" $NODE_EXE `" `" $NPX_CLI_JS `" $NPX_ARGS "
4143 } else {
4244 Invoke-Expression " & `" $NODE_EXE `" `" $NPX_CLI_JS `" $NPX_ARGS "
4345 }
You can’t perform that action at this time.
0 commit comments