(script, tool string)
| 284 | } |
| 285 | |
| 286 | func (s *Supplier) runScript(script, tool string) error { |
| 287 | args := []string{"run", script} |
| 288 | if tool == "npm" { |
| 289 | args = append(args, "--if-present") |
| 290 | } |
| 291 | |
| 292 | s.Log.Info("Running %s (%s)", script, tool) |
| 293 | |
| 294 | return s.Command.Execute(s.Stager.BuildDir(), os.Stdout, os.Stderr, tool, args...) |
| 295 | |
| 296 | } |
| 297 | |
| 298 | func (s *Supplier) runPrebuild(tool string) error { |
| 299 | if s.PreBuild == "" { |
no test coverage detected