Skip to content

Commit

Permalink
Fix fly launch failing in pnpm workspace while adding `@flydotio/do…
Browse files Browse the repository at this point in the history
…ckerfile` dependency (#4018)

Fix `flyctl launch` installation in pnpm workspace
  • Loading branch information
pmrotule authored Oct 21, 2024
1 parent 01e3616 commit a6df2bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scanner/jsFramework.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,13 @@ func JsFrameworkCallback(appName string, srcInfo *SourceInfo, plan *plan.LaunchP

_, err = os.Stat("pnpm-lock.yaml")
if !errors.Is(err, fs.ErrNotExist) {
args = []string{"pnpm", "add", "-D", "@flydotio/dockerfile@latest"}

_, err = os.Stat("pnpm-workspace.yaml")
if errors.Is(err, fs.ErrNotExist) {
args = []string{"pnpm", "add", "-D", "@flydotio/dockerfile@latest"}
} else {
args = []string{"pnpm", "add", "-w", "-D", "@flydotio/dockerfile@latest"}
}
}

_, err = os.Stat("bun.lockb")
Expand Down

0 comments on commit a6df2bb

Please sign in to comment.