Nuxt/distributions/nuxt-start/bin/nuxt-start.js
pooya parsa 98c1922770 fix(dist): use -edge suffix to require cli
also prefer lazy requires. [release]
2019-01-05 00:40:18 +03:30

9 lines
212 B
JavaScript
Executable File

#!/usr/bin/env node
if (process.argv[2] !== 'start') {
process.argv.splice(2, 0, 'start')
}
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
require('@nuxt/cli' + suffix).run()