Nuxt/distributions/nuxt/bin/nuxt.js

11 lines
293 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
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)
})