MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / nodeScriptCmd

Function nodeScriptCmd

internal/cli/detect.go:336–345  ·  view source on GitHub ↗
(pm, script string)

Source from the content-addressed store, hash-verified

334}
335
336func 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
347func scriptExists(scripts map[string]string, key string) bool {
348 if scripts == nil {

Callers 1

detectFrontendProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected