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