MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / npmInvocation

Function npmInvocation

src/upgrade/index.ts:640–645  ·  view source on GitHub ↗
(platform: NodeJS.Platform, npmArgs: string[])

Source from the content-addressed store, hash-verified

638 * `cmd.exe /d /s /c npm …` → works.)
639 */
640export function npmInvocation(platform: NodeJS.Platform, npmArgs: string[]): { cmd: string; args: string[] } {
641 if (platform === 'win32') {
642 return { cmd: 'cmd.exe', args: ['/d', '/s', '/c', ['npm', ...npmArgs].join(' ')] };
643 }
644 return { cmd: 'npm', args: npmArgs };
645}
646
647function upgradeNpm(
648 method: Extract<InstallMethod, { kind: 'npm' }>,

Callers 4

planBinaryRemovalFunction · 0.90
executeBinaryRemovalFunction · 0.90
upgradeNpmFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected