MCPcopy
hub / github.com/vitejs/vite / getRunCommand

Function getRunCommand

packages/create-vite/src/index.ts:1115–1126  ·  view source on GitHub ↗
(agent: string, script: string)

Source from the content-addressed store, hash-verified

1113}
1114
1115function getRunCommand(agent: string, script: string) {
1116 switch (agent) {
1117 case 'yarn':
1118 case 'pnpm':
1119 case 'bun':
1120 return [agent, script]
1121 case 'deno':
1122 return [agent, 'task', script]
1123 default:
1124 return [agent, 'run', script]
1125 }
1126}
1127
1128type ColorName = Exclude<Parameters<typeof util.styleText>[0], any[]>
1129

Callers 2

startFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected