Merge branch '2.x' into dev

This commit is contained in:
pooya parsa 2019-02-25 23:49:12 +03:30
commit adfc15bc7f

View File

@ -11,9 +11,11 @@ const tsConfigPath = resolve(rootDir, 'tsconfig.json')
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : '' const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
require('@nuxt/typescript' + suffix).setup(tsConfigPath).then(() => { const errorHandler = (error) => {
require('@nuxt/cli' + suffix).run()
}).catch((error) => {
require('consola').fatal(error) require('consola').fatal(error)
process.exit(2) process.exit(2)
}) }
require('@nuxt/typescript' + suffix).setup(tsConfigPath).then(() => {
require('@nuxt/cli' + suffix).run().catch(errorHandler)
}).catch(errorHandler)