Skip to content

Commit

Permalink
figgy-config: fix opts.color defaults because npm is weird
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 10, 2018
1 parent ec9fcc1 commit 8a56fa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/config/figgy-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8a56fa3

Please sign in to comment.