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

Function isYarnUsed

src/util.ts:139–144  ·  view source on GitHub ↗
(existsSync = fs.existsSync)

Source from the content-addressed store, hash-verified

137 * - If only package-lock.json or both exist, use npm
138 */
139export function isYarnUsed(existsSync = fs.existsSync): boolean {
140 if (existsSync('package-lock.json')) {
141 return false;
142 }
143 return existsSync('yarn.lock');
144}
145
146export function getPkgManagerCommand(isYarnUsed?: boolean): string {
147 return (

Callers 2

test-util.tsFile · 0.90
runFunction · 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…