Check for a Yarn lockfile in the current working directory.
$ yarn add yarn-lockfile-exists # Or alternatively: `npm install --save yarn-lockfile-exists`
'use strict';const yarnLockfileExists = ;// Returns `true` or `false` based off of if there is a `yarn.lock`// file in the location that `process.cwd()` points to.;// Optionally you can specify the current working directory for the// function to operate in.const cwd = '/home/myself/awesome-project';;
$ yarn test # Or alternatively: `npm test`
The MIT License (Expat). See the license file for details.