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' : ''
require('@nuxt/typescript' + suffix).setup(tsConfigPath).then(() => {
require('@nuxt/cli' + suffix).run()
}).catch((error) => {
const errorHandler = (error) => {
require('consola').fatal(error)
process.exit(2)
})
}
require('@nuxt/typescript' + suffix).setup(tsConfigPath).then(() => {
require('@nuxt/cli' + suffix).run().catch(errorHandler)
}).catch(errorHandler)