Skip to content

Commit a21bdb2

Browse files
Don't require a scripts field in package.json
1 parent 972f888 commit a21bdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func runScript(name string, args []string) error {
2323
}
2424

2525
if pkg.Scripts == nil {
26-
return fmt.Errorf("No scripts found")
26+
pkg.Scripts = &map[string]string{}
2727
}
2828

2929
binDirs := findBinDirs(cwd)

0 commit comments

Comments
 (0)