From a21bdb2e34be67e0073bd1913822fec0758058c5 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sat, 5 Nov 2022 14:09:17 +0000 Subject: [PATCH] Don't require a `scripts` field in package.json --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 17e32f5..7958cce 100644 --- a/utils.go +++ b/utils.go @@ -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)