We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876423d commit 25d1e29Copy full SHA for 25d1e29
src/utils.ts
@@ -63,7 +63,8 @@ export function resolveRootDir() {
63
if (configFiles.some((file) => fs.existsSync(path.join(dir, file)))) {
64
return dir;
65
}
66
- } while (dir);
+ dir = path.dirname(dir);
67
+ } while (path.parse(dir).base);
68
throw new Error(
69
"Unable to determine the project root directory, please add the package.json file to the project root directory"
70
);
0 commit comments