From c008c549a13012f51e10a78ba3f1012eb7c2cd20 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Mon, 16 May 2016 09:24:21 -0400 Subject: [PATCH] only install production dependencies --- lib/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/template.js b/lib/template.js index 6862835..3213a36 100644 --- a/lib/template.js +++ b/lib/template.js @@ -270,7 +270,7 @@ function createTargetDirectory (target) { function installDependenciesIfPresent () { if (!fs.existsSync(path.join(this.path, 'package.json'))) { return } this.sprout.emit('msg', 'installing npm dependencies') - return exec('npm install', { cwd: this.path }) + return exec('npm install --production', { cwd: this.path }) } function loadConfigFile () {