Last change
on this file since 76712b2 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago |
adding photos
|
-
Property mode
set to
100644
|
File size:
542 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 | $ret=0
|
---|
| 11 | if (Test-Path "$basedir/node$exe") {
|
---|
[59329aa] | 12 | & "$basedir/node$exe" "$basedir/../@angular/compiler-cli/ngcc/main-ivy-ngcc.js" $args
|
---|
[6a3a178] | 13 | $ret=$LASTEXITCODE
|
---|
| 14 | } else {
|
---|
[59329aa] | 15 | & "node$exe" "$basedir/../@angular/compiler-cli/ngcc/main-ivy-ngcc.js" $args
|
---|
[6a3a178] | 16 | $ret=$LASTEXITCODE
|
---|
| 17 | }
|
---|
| 18 | exit $ret
|
---|
Note:
See
TracBrowser
for help on using the repository browser.