#!/usr/bin/env pwsh $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent $exe="" if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { # Fix case when both the Windows and Linux builds of Node # are installed in the same directory $exe=".exe" } $ret=0 if (Test-Path "$basedir/node$exe") { # Support pipeline input if ($MyInvocation.ExpectingInput) { $input | & "$basedir/node$exe" "$basedir/../dist/npm.js" $args } else { & "$basedir/node$exe" "$basedir/../dist/npm.js" $args } $ret=$LASTEXITCODE } else { # Support pipeline input if ($MyInvocation.ExpectingInput) { $input | & "node$exe" "$basedir/../dist/npm.js" $args } else { & "node$exe" "$basedir/../dist/npm.js" $args } $ret=$LASTEXITCODE } exit $ret
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
nodewin | Folder | 0755 |
|
|
corepack | File | 284 B | 0755 |
|
corepack.cmd | File | 180 B | 0755 |
|
corepack.ps1 | File | 789 B | 0755 |
|
npm | File | 274 B | 0755 |
|
npm.cmd | File | 170 B | 0755 |
|
npm.ps1 | File | 769 B | 0755 |
|
npx | File | 274 B | 0755 |
|
npx.cmd | File | 170 B | 0755 |
|
npx.ps1 | File | 769 B | 0755 |
|
pnpm | File | 276 B | 0755 |
|
pnpm.cmd | File | 172 B | 0755 |
|
pnpm.ps1 | File | 773 B | 0755 |
|
pnpx | File | 276 B | 0755 |
|
pnpx.cmd | File | 172 B | 0755 |
|
pnpx.ps1 | File | 773 B | 0755 |
|
yarn | File | 276 B | 0755 |
|
yarn.cmd | File | 172 B | 0755 |
|
yarn.ps1 | File | 773 B | 0755 |
|
yarnpkg | File | 282 B | 0755 |
|
yarnpkg.cmd | File | 178 B | 0755 |
|
yarnpkg.ps1 | File | 785 B | 0755 |
|