Skip to content

Commit

Permalink
Fixed statement for WIN
Browse files Browse the repository at this point in the history
  • Loading branch information
isachivka committed Oct 13, 2020
1 parent 3b4d30f commit 74756cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const directoryContainsRootPackageJson = (path) => {

const getRepositoryRoot = (path = process.cwd()) => {
let pathForCheck = path;
while (pathForCheck !== '/') {
while (pathForCheck !== resolve(pathForCheck, '..')) {
if (directoryContainsRootPackageJson(pathForCheck)) {
return pathForCheck;
}
Expand Down

0 comments on commit 74756cb

Please sign in to comment.