Nuxt/distributions/nuxt-start/bin/nuxt-start.js

15 lines
368 B
JavaScript
Raw Normal View History

#!/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)
})