stop looking for configs in babel-doctor when we get to the root

This commit is contained in:
Sebastian McKenzie
2015-11-03 10:20:57 +00:00
parent c004777efa
commit 9110cbfbc8
2 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export default async function () {
do {
let loc = parts.join(path.sep);
if (!loc) break;
let babelrc = path.join(loc, ".babelrc");
if (fs.existsSync(babelrc)) {