Skip to content

Commit 6a5094c

Browse files
jacobheundaviddias
authored andcommitted
fix: dont require missing config
1 parent 9b03a38 commit 6a5094c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ exports.getUserConfigPath = () => {
7979
exports.getUserConfig = () => {
8080
let conf = {}
8181
try {
82-
conf = require(exports.getUserConfigPath())
82+
const path = exports.getUserConfigPath()
83+
if (!path) return null
84+
conf = require(path)
8385
} catch (err) {
8486
console.error(err)
8587
}

0 commit comments

Comments
 (0)