Skip to content

Commit 8307ed3

Browse files
committed
fix: fails without config, close #337
1 parent 36e5996 commit 8307ed3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cfg-resolve.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export default ({input, flags = {}}) => {
5757
}
5858

5959
if (!config && !use) {
60-
({config} = explorer.search());
60+
const search = explorer.search();
61+
config = search?.config;
6162
}
6263

6364
if (config?.root) {

0 commit comments

Comments
 (0)