index.js 268 B

123456789
  1. 'use strict';
  2. const path = require('path');
  3. const fs = require('fs');
  4. const hasYarn = (cwd = process.cwd()) => fs.existsSync(path.resolve(cwd, 'yarn.lock'));
  5. module.exports = hasYarn;
  6. // TODO: Remove this for the next major release
  7. module.exports.default = hasYarn;