[v2] allow no package.json

This commit is contained in:
Lea Anthony
2021-09-07 07:06:18 +10:00
parent 36cd6af6df
commit a78b9a5b9b

View File

@@ -394,7 +394,8 @@ func (b *BaseBuilder) NpmInstallUsingCommand(sourceDir string, installCommand st
// Check package.json exists
if !fs.FileExists(packageJSON) {
return fmt.Errorf("unable to load package.json at '%s'", packageJSON)
// No package.json, no install
return nil
}
install := false