(pm, script string)
| 334 | } |
| 335 | |
| 336 | func nodeScriptCmd(pm, script string) string { |
| 337 | switch pm { |
| 338 | case "yarn": |
| 339 | return "yarn " + script |
| 340 | case "pnpm": |
| 341 | return "pnpm " + script |
| 342 | default: |
| 343 | return "npm run " + script |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | func scriptExists(scripts map[string]string, key string) bool { |
| 348 | if scripts == nil { |
no outgoing calls
no test coverage detected