hotfix: nuxt-start tries to build instead of starting (#4384)

This commit is contained in:
Clark Du 2018-11-21 16:04:01 +00:00 committed by Pooya Parsa
parent 0cd49492e0
commit b12141b99a

View File

@ -2,4 +2,7 @@
const { name } = require('../package.json') const { name } = require('../package.json')
const isEdge = name.indexOf('-edge') !== -1 const isEdge = name.indexOf('-edge') !== -1
const cli = require(isEdge ? '@nuxt/cli-edge' : '@nuxt/cli') const cli = require(isEdge ? '@nuxt/cli-edge' : '@nuxt/cli')
if (process.argv[2] !== 'start') {
process.argv.splice(2, 0, 'start')
}
cli.run() cli.run()