Skip to content

Commit 88e0488

Browse files
committed
chore: update
1 parent e7c974f commit 88e0488

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/core/src/config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ const findConfig = async (basePath: string): Promise<string | undefined> => {
9090
return i === false;
9191
});
9292

93-
if (allResolved) {
94-
if (isExist) {
95-
resolve(configPath);
96-
} else {
97-
resolve(undefined);
98-
}
93+
if (allResolved && isExist) {
94+
resolve(configPath);
95+
return;
96+
}
97+
98+
if (index === DEFAULT_CONFIG_EXTENSIONS.length - 1) {
99+
resolve(undefined);
99100
}
100101
});
101102
});

0 commit comments

Comments
 (0)