11 lines
194 B
TypeScript
11 lines
194 B
TypeScript
|
import { execSync } from 'child_process'
|
||
|
|
||
|
export function shouldUseYarn() {
|
||
|
try {
|
||
|
execSync('yarnpkg --version', { stdio: 'ignore' })
|
||
|
return true
|
||
|
} catch (e) {
|
||
|
return false
|
||
|
}
|
||
|
}
|