Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Feb 29, 2024
1 parent 97c1a53 commit 781a7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/project/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (p *Project) writePackageJson() error {
dependencies := result["dependencies"].(map[string]interface{})
for name, config := range p.app.Providers {
version := config["version"]
if version == "" {
if version == nil || version == "" {
version = "latest"
}
slog.Info("adding dependency", "name", name)
Expand Down

0 comments on commit 781a7bc

Please sign in to comment.