From 10ad858fd2a642c921b4162c824ee2a5450b9de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Wed, 28 Nov 2018 16:46:49 -0800 Subject: [PATCH] fix(add): fix up config stuff --- lib/commands/add.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/commands/add.js b/lib/commands/add.js index ec04f03..f4f3ee5 100644 --- a/lib/commands/add.js +++ b/lib/commands/add.js @@ -32,16 +32,15 @@ async function add (argv) { const BB = require('bluebird') const figgyPudding = require('figgy-pudding') - const log = require('npmlog') const npmConfig = require('../config.js') const spawn = require('child_process').spawn const AddConfig = figgyPudding({ - log: { default: () => log }, + log: {}, silent: {} }, { other () { return true } }) - const opts = AddConfig(npmConfig().concat(argv).concat({ log })) + const opts = AddConfig(npmConfig(argv)) await new BB((resolve, reject) => { const npmBin = process.platform === 'win32' ? 'npm.cmd' : 'npm'