diff options
Diffstat (limited to 'node_modules/has-yarn/index.js')
-rw-r--r-- | node_modules/has-yarn/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/has-yarn/index.js b/node_modules/has-yarn/index.js new file mode 100644 index 000000000..f7ff13dbd --- /dev/null +++ b/node_modules/has-yarn/index.js @@ -0,0 +1,5 @@ +'use strict'; +const path = require('path'); +const fs = require('fs'); + +module.exports = cwd => fs.existsSync(path.resolve(cwd || process.cwd(), 'yarn.lock')); |