fix: invalid plugin mode warning for all

This commit is contained in:
Clark Du 2019-01-19 12:27:15 +00:00
parent 602cf12216
commit 9b3e7be3e7
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -117,7 +117,7 @@ export default class Builder {
p.mode = 'client' p.mode = 'client'
} else if (p.mode === undefined) { } else if (p.mode === undefined) {
p.mode = 'all' p.mode = 'all'
} else if (!['client', 'server'].includes(p.mode)) { } else if (!['client', 'server', 'all'].includes(p.mode)) {
consola.warn(`Invalid plugin mode (server/client/all): '${p.mode}'. Falling back to 'all'`) consola.warn(`Invalid plugin mode (server/client/all): '${p.mode}'. Falling back to 'all'`)
p.mode = 'all' p.mode = 'all'
} }