Skip to content

Commit

Permalink
chore: remove uncessesarry source-map install
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Jul 17, 2017
1 parent 5ce204c commit e6987d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions bin/nuxt
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
4 changes: 2 additions & 2 deletions bin/nuxt-start
Original file line number Diff line number Diff line change
Expand Up @@ -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), {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e6987d6

Please sign in to comment.