@zkochan/cmd-shim
Advanced tools
Comparing version 4.1.0 to 4.2.0
35
index.js
@@ -345,6 +345,16 @@ 'use strict'; | ||
// if (Test-Path "$basedir/node") { | ||
// & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args | ||
// # Support pipeline input | ||
// if ($MyInvocation.ExpectingInput) { | ||
// $input | & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args | ||
// } else { | ||
// & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args | ||
// } | ||
// $ret=$LASTEXITCODE | ||
// } else { | ||
// & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args | ||
// # Support pipeline input | ||
// if ($MyInvocation.ExpectingInput) { | ||
// $input | & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args | ||
// } else { | ||
// & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args | ||
// } | ||
// $ret=$LASTEXITCODE | ||
@@ -375,6 +385,16 @@ // } | ||
`if (Test-Path ${pwshLongProg}) {\n` + | ||
` & ${pwshLongProg} ${args} ${shTarget} $args\n` + | ||
' # Support pipeline input\n' + | ||
' if ($MyInvocation.ExpectingInput) {\n' + | ||
` $input | & ${pwshLongProg} ${args} ${shTarget} $args\n` + | ||
' } else {\n' + | ||
` & ${pwshLongProg} ${args} ${shTarget} $args\n` + | ||
' }\n' + | ||
' $ret=$LASTEXITCODE\n' + | ||
'} else {\n' + | ||
` & ${pwshProg} ${args} ${shTarget} $args\n` + | ||
' # Support pipeline input\n' + | ||
' if ($MyInvocation.ExpectingInput) {\n' + | ||
` $input | & ${pwshProg} ${args} ${shTarget} $args\n` + | ||
' } else {\n' + | ||
` & ${pwshProg} ${args} ${shTarget} $args\n` + | ||
' }\n' + | ||
' $ret=$LASTEXITCODE\n' + | ||
@@ -387,3 +407,8 @@ '}\n' + | ||
pwsh = pwsh + | ||
`& ${pwshProg} ${args} ${shTarget} $args\n` + | ||
'# Support pipeline input\n' + | ||
'if ($MyInvocation.ExpectingInput) {\n' + | ||
` $input | & ${pwshProg} ${args} ${shTarget} $args\n` + | ||
'} else {\n' + | ||
` & ${pwshProg} ${args} ${shTarget} $args\n` + | ||
'}\n' + | ||
(opts.nodePath ? '$env:NODE_PATH=$env_node_path\n' : '') + | ||
@@ -390,0 +415,0 @@ 'exit $LASTEXITCODE\n'; |
{ | ||
"name": "@zkochan/cmd-shim", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Used in pnpm for command line application support", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33420
509