2019-01-04 19:30:28 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2019-01-04 21:10:18 +00:00
|
|
|
// Globally indicate we are running in ts mode
|
2019-01-04 19:30:28 +00:00
|
|
|
process.env.NUXT_TS = 'true'
|
|
|
|
|
|
|
|
// https://github.com/TypeStrong/ts-node
|
2019-01-12 22:36:22 +00:00
|
|
|
require('ts-node').register({
|
|
|
|
compilerOptions: {
|
|
|
|
module: 'commonjs'
|
|
|
|
}
|
|
|
|
})
|
2019-01-04 19:30:28 +00:00
|
|
|
|
2019-01-04 21:10:18 +00:00
|
|
|
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
|
|
|
|
require('@nuxt/cli' + suffix).run()
|
2019-01-19 12:49:57 +00:00
|
|
|
.catch((error) => {
|
|
|
|
require('consola').fatal(error)
|
|
|
|
process.exit(2)
|
|
|
|
})
|