From e6987d62f0633db3394ea33e4a564a7ef414a7e7 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 17 Jul 2017 22:29:31 +0430 Subject: [PATCH] chore: remove uncessesarry source-map install --- bin/nuxt | 4 ---- bin/nuxt-start | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/nuxt b/bin/nuxt index 42217249cb..35c82cf255 100755 --- a/bin/nuxt +++ b/bin/nuxt @@ -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' diff --git a/bin/nuxt-start b/bin/nuxt-start index 13551694aa..5e40ebd201 100755 --- a/bin/nuxt-start +++ b/bin/nuxt-start @@ -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)