Skip to content

Commit be726e1

Browse files
committed
fix: build cannot exit (close: #580)
1 parent 5479d6e commit be726e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: bin/vuepress.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ if (!process.argv.slice(2).length) {
101101

102102
function wrapCommand (fn) {
103103
return (...args) => {
104-
return fn(...args).catch(err => {
104+
return fn(...args).then(() => {
105+
process.exit(0)
106+
}).catch(err => {
105107
console.error(chalk.red(err.stack))
106108
})
107109
}

0 commit comments

Comments
 (0)