Nuxt/distributions/nuxt-start/bin/nuxt-start.js
pooya parsa dec8f99fc3
feat: support plug-and-play, typescript runtime and native modules (#8389)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
2020-12-22 18:07:50 +01:00

15 lines
368 B
JavaScript
Executable File

#!/usr/bin/env node
if (process.argv[2] !== 'start') {
process.argv.splice(2, 0, 'start')
}
global.__NUXT_PATHS__ = (global.__NUXT_PATHS__ || []).concat(__dirname)
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
require('@nuxt/cli' + suffix).run()
.catch((error) => {
require('consola').fatal(error)
process.exit(2)
})