Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Commit

Permalink
Remove /express hack to check node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
NickColley committed Jun 19, 2018
1 parent 480fae0 commit b81e2a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions start.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
const path = require('path')
const fs = require('fs')

// Check /express since we are committing in node_modules in this prototype version of the kit
checkFiles()

// Local dependencies
Expand Down Expand Up @@ -38,8 +37,7 @@ if (usageDataConfig.collectUsageData === undefined) {

// Warn if node_modules folder doesn't exist
function checkFiles () {
// HACK: Check /express since we are committing in node_modules in this prototype version of the kit
const nodeModulesExists = fs.existsSync(path.join(__dirname, '/node_modules', '/express'))
const nodeModulesExists = fs.existsSync(path.join(__dirname, '/node_modules'))
if (!nodeModulesExists) {
console.error('ERROR: Node module folder missing. Try running `npm install`')
process.exit(0)
Expand Down

0 comments on commit b81e2a0

Please sign in to comment.