-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #268 from nodists/fix-installer-versions
fix(build): use known working node version for the installer
- Loading branch information
Showing
15 changed files
with
610 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
name: run-tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
pull_request: | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
"os/exec" | ||
|
||
nodist "github.com/nodists/nodist/internal" | ||
) | ||
|
||
func main() { | ||
err, nodebin, _, _ := nodist.DetermineNodeExecutable("node") | ||
|
||
// Run node! | ||
cmd := exec.Command(nodebin, os.Args[1:]...) | ||
nodist.ExecuteCommand(cmd, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
"os/exec" | ||
|
||
nodist "github.com/nodists/nodist/internal" | ||
) | ||
|
||
func main() { | ||
err, nodebin, dir, nodeVersion := nodist.DetermineNodeExecutable("node") | ||
|
||
path, _ := nodist.DetermineNpmPath(dir, nodeVersion) | ||
|
||
npmbin := path + "/bin/npm-cli.js" | ||
|
||
args := []string{npmbin} | ||
args = append(args, os.Args[1:]...) | ||
|
||
// Run npm! | ||
cmd := exec.Command(nodebin, args...) | ||
nodist.ExecuteCommand(cmd, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package main | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
"os" | ||
"os/exec" | ||
|
||
nodist "github.com/nodists/nodist/internal" | ||
) | ||
|
||
func main() { | ||
err, nodebin, dir, nodeVersion := nodist.DetermineNodeExecutable("node") | ||
|
||
path, npmVersion := nodist.DetermineNpmPath(dir, nodeVersion) | ||
|
||
npxbin := path + "/bin/npx-cli.js" | ||
|
||
if _, err := os.Stat(npxbin); errors.Is(err, os.ErrNotExist) { | ||
fmt.Println("Npx not found for selected npm version:", npmVersion) | ||
os.Exit(47) | ||
} | ||
|
||
args := []string{npxbin} | ||
args = append(args, os.Args[1:]...) | ||
|
||
// Run npx! | ||
cmd := exec.Command(nodebin, args...) | ||
nodist.ExecuteCommand(cmd, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.