Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,12 @@ Cli.runWithNpmScripts = function runWithNpmScripts(argv, taskInstance, rawCliArg

Cli.runNpmHook = function runNpmHook(hook) {
var cmd = 'npm';
var args = ['run', hook, '--color'];
var args = ['run', hook];
var command = cmd + ' ' + args;

// Force colors for all spawned child processes
process.env['FORCE_COLOR'] = true;

var q = Q.defer();
var spawn = require('cross-spawn-async');

Expand Down