Skip to content

Commit 8a56fa3

Browse files
committed
figgy-config: fix opts.color defaults because npm is weird
1 parent ec9fcc1 commit 8a56fa3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/config/figgy-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function mkConfig (...providers) {
2727
baseConfig = NpmConfig(npm.config, {
2828
// Add some non-npm-config opts by hand.
2929
cache: path.join(npm.config.get('cache'), '_cacache'),
30+
// NOTE: npm has some magic logic around color distinct from the config
31+
// value, so we have to override it here
32+
color: !!npm.color,
3033
dirPacker: pack.packGitDep,
3134
hashAlgorithm: 'sha1',
3235
includeDeprecated: false,

0 commit comments

Comments
 (0)