chore: remove uncessesarry source-map install

This commit is contained in:
Pooya Parsa 2017-07-17 22:29:31 +04:30
parent 5ce204c19f
commit e6987d62f0
2 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,5 @@
#!/usr/bin/env node
// Node Source Map Support
// https://github.com/evanw/node-source-map-support
require('source-map-support').install()
const join = require('path').join
const defaultCommand = 'dev'

View File

@ -2,7 +2,7 @@
const fs = require('fs')
const parseArgs = require('minimist')
const { Nuxt, Server } = require('../')
const { Nuxt } = require('../')
const { join, resolve } = require('path')
const argv = parseArgs(process.argv.slice(2), {
@ -60,7 +60,7 @@ if (typeof options.rootDir !== 'string') {
options.dev = false
// Check if project is built for production
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist' )
const distDir = join(options.rootDir, options.buildDir || '.nuxt', 'dist')
if (!fs.existsSync(join(distDir, 'server-bundle.json'))) {
console.error('> No build files found, please run `nuxt build` before launching `nuxt start`') // eslint-disable-line no-console
process.exit(1)