mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Merge branch '2.x' into dev
This commit is contained in:
commit
adfc15bc7f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user