Skip to content

Commit

Permalink
fix: disable forcing bun as package manager, due new upstream bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jan 16, 2024
1 parent eac5535 commit bba0b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extension/asset_platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,10 @@ func getInstallCommand(root string, isProductionMode bool, npmPackage npmPackage
}

// Bun can migrate on the fly the package-lock.json to a bun.lockdb and is much faster than NPM
if _, err := exec.LookPath("bun"); err == nil && canRunBunOnPackage(npmPackage) && !isProductionMode {
return exec.Command("bun", "install", "--no-save")
if os.Getenv("SHOPWARE_CLI_FORCE_BUN") == "1" {
if _, err := exec.LookPath("bun"); err == nil && canRunBunOnPackage(npmPackage) && !isProductionMode {
return exec.Command("bun", "install", "--no-save")
}
}

return exec.Command("npm", "install", "--no-audit", "--no-fund", "--prefer-offline")
Expand Down

0 comments on commit bba0b7c

Please sign in to comment.