UNPKG

monorepo-run

Version:

Run scripts in monorepo with colors, streaming and separated panes

16 lines (13 loc) 278 B
const { execSync } = require('child_process') let _hasYarn exports.hasYarn = () => { if (_hasYarn != null) { return _hasYarn } try { execSync('yarn --version', { stdio: 'ignore' }) return (_hasYarn = true) } catch (e) { return (_hasYarn = false) } }