Compare commits

..

No commits in common. 'b3a9d1a25e6adb2d3f8a25b7dc9fd6681594e33f' and 'b659a3f2612957cb39370db219d42784ffbe93e4' have entirely different histories.

@ -1,6 +1,6 @@
{
"name": "get-project-root",
"version": "0.0.4",
"version": "0.0.3",
"description": "Locates the 'root directory' of the current project",
"main": "index.js",
"scripts": {

@ -29,7 +29,7 @@ function reachedRoot(candidatePath) {
return /^(?:\/|[a-z]:\\)$/i.test(candidatePath);
}
module.exports = function(options = {}) {
module.exports = function(options) {
let currentPath = defaultValue(options.basePath, __dirname);
let checker = defaultValue(options.checker, "package.json");

Loading…
Cancel
Save