Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
506 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | #!/usr/bin/env pwsh
|
---|
| 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
---|
| 3 |
|
---|
| 4 | $exe=""
|
---|
| 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
---|
| 6 | # Fix case when both the Windows and Linux builds of Node
|
---|
| 7 | # are installed in the same directory
|
---|
| 8 | $exe=".exe"
|
---|
| 9 | }
|
---|
| 10 | # Support pipeline input
|
---|
| 11 | if ($MyInvocation.ExpectingInput) {
|
---|
| 12 | $input | & "$basedir/../@npmcli/installed-package-contents/index.js" $args
|
---|
| 13 | } else {
|
---|
| 14 | & "$basedir/../@npmcli/installed-package-contents/index.js" $args
|
---|
| 15 | }
|
---|
| 16 | exit $LASTEXITCODE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.