diff options
Diffstat (limited to 'node_modules/has-yarn/index.js')
-rw-r--r-- | node_modules/has-yarn/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/has-yarn/index.js b/node_modules/has-yarn/index.js new file mode 100644 index 0000000..a1f4eed --- /dev/null +++ b/node_modules/has-yarn/index.js @@ -0,0 +1,9 @@ +'use strict'; +const path = require('path'); +const fs = require('fs'); + +const hasYarn = (cwd = process.cwd()) => fs.existsSync(path.resolve(cwd, 'yarn.lock')); + +module.exports = hasYarn; +// TODO: Remove this for the next major release +module.exports.default = hasYarn; |