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

Function npmInvocation

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

Source from the content-addressed store, hash-verified

855 * `cmd.exe /d /s /c npm …` → works.)
856 */
857export function npmInvocation(platform: NodeJS.Platform, npmArgs: string[]): { cmd: string; args: string[] } {
858 if (platform === 'win32') {
859 return { cmd: 'cmd.exe', args: ['/d', '/s', '/c', ['npm', ...npmArgs].join(' ')] };
860 }
861 return { cmd: 'npm', args: npmArgs };
862}
863
864function upgradeNpm(
865 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