MCPcopy
hub / github.com/google/gts / getPkgManagerCommand

Function getPkgManagerCommand

src/util.ts:146–150  ·  view source on GitHub ↗
(isYarnUsed?: boolean)

Source from the content-addressed store, hash-verified

144}
145
146export function getPkgManagerCommand(isYarnUsed?: boolean): string {
147 return (
148 (isYarnUsed ? 'yarn' : 'npm') + (process.platform === 'win32' ? '.cmd' : '')
149 );
150}
151
152/**
153 * Find the tsconfig.json, read it, and return parsed contents.

Callers 3

test-util.tsFile · 0.90
addScriptsFunction · 0.90
initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…