Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump turbine-js #331

Merged
merged 1 commit into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/meroxa/turbine_cli/javascript/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func Build(ctx context.Context, l log.Logger, path string) error {
// TODO: Handle the requirement of https://github.com/meroxa/turbine-js.git being installed
// cd into the path first
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].4", "test", path)
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].6", "test", path)
_, err := turbinecli.RunCmdWithErrorDetection(ctx, cmd, l)
return err
}
6 changes: 3 additions & 3 deletions cmd/meroxa/turbine_cli/javascript/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func NeedsToBuild(path string) (bool, error) {
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].4", "hasfunctions", path)
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].6", "hasfunctions", path)
output, err := cmd.CombinedOutput()
if err != nil {
err := fmt.Errorf(
Expand All @@ -37,7 +37,7 @@ func NeedsToBuild(path string) (bool, error) {
}

func BuildApp(path string) (string, error) {
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].4", "clibuild", path)
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].6", "clibuild", path)
output, err := cmd.CombinedOutput()
if err != nil {
return "", fmt.Errorf("unable to build Meroxa Application at %s; %s", path, string(output))
Expand All @@ -52,7 +52,7 @@ func BuildApp(path string) (string, error) {
}

func RunDeployApp(ctx context.Context, l log.Logger, path, imageName string) (string, error) {
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].4", "clideploy", imageName, path)
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].6", "clideploy", imageName, path)

accessToken, _, err := global.GetUserToken()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/meroxa/turbine_cli/javascript/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func Init(ctx context.Context, l log.Logger, name, path string) error {
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].4", "generate", name, path)
cmd := exec.Command("npx", "--yes", "@meroxa/[email protected].6", "generate", name, path)
_, err := turbineCLI.RunCmdWithErrorDetection(ctx, cmd, l)
return err
}