Skip to content

Commit

Permalink
Don't require a scripts field in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Nov 5, 2022
1 parent 972f888 commit a21bdb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func runScript(name string, args []string) error {
}

if pkg.Scripts == nil {
return fmt.Errorf("No scripts found")
pkg.Scripts = &map[string]string{}
}

binDirs := findBinDirs(cwd)
Expand Down

0 comments on commit a21bdb2

Please sign in to comment.