Compare commits

..

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

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

@ -6,7 +6,7 @@ const defaultValue = require("default-value");
let defaultCheckers = {
"package.json": function(directory) {
let parentPackageFile = path.join(directory, "..", "..", "package.json");
let parentPackageFile = path.join(directory, `..${path.sep}..${path.sep}package.json`);
try {
fs.accessSync(parentPackageFile);
@ -74,7 +74,7 @@ module.exports = function(options) {
}
if (rootFound === false) {
currentPath = path.join(currentPath, "..", "..");
currentPath = path.join(currentPath, `..${path.sep}..`);
}
}

Loading…
Cancel
Save