Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit 781a7bc

Browse files
committed
fix version
1 parent 97c1a53 commit 781a7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/project/install.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (p *Project) writePackageJson() error {
5252
dependencies := result["dependencies"].(map[string]interface{})
5353
for name, config := range p.app.Providers {
5454
version := config["version"]
55-
if version == "" {
55+
if version == nil || version == "" {
5656
version = "latest"
5757
}
5858
slog.Info("adding dependency", "name", name)

0 commit comments

Comments
 (0)