From 8a56fa39e61136da45565447fe201a57f04ad4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Fri, 31 Aug 2018 11:55:16 -0700 Subject: [PATCH] figgy-config: fix opts.color defaults because npm is weird --- lib/config/figgy-config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/config/figgy-config.js b/lib/config/figgy-config.js index ae998272c3cb8..9f99db329be4b 100644 --- a/lib/config/figgy-config.js +++ b/lib/config/figgy-config.js @@ -27,6 +27,9 @@ function mkConfig (...providers) { baseConfig = NpmConfig(npm.config, { // Add some non-npm-config opts by hand. cache: path.join(npm.config.get('cache'), '_cacache'), + // NOTE: npm has some magic logic around color distinct from the config + // value, so we have to override it here + color: !!npm.color, dirPacker: pack.packGitDep, hashAlgorithm: 'sha1', includeDeprecated: false,