Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Commit 10ad858

Browse files
committed
fix(add): fix up config stuff
1 parent 0a76abd commit 10ad858

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/commands/add.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ async function add (argv) {
3232
const BB = require('bluebird')
3333

3434
const figgyPudding = require('figgy-pudding')
35-
const log = require('npmlog')
3635
const npmConfig = require('../config.js')
3736
const spawn = require('child_process').spawn
3837

3938
const AddConfig = figgyPudding({
40-
log: { default: () => log },
39+
log: {},
4140
silent: {}
4241
}, { other () { return true } })
4342

44-
const opts = AddConfig(npmConfig().concat(argv).concat({ log }))
43+
const opts = AddConfig(npmConfig(argv))
4544

4645
await new BB((resolve, reject) => {
4746
const npmBin = process.platform === 'win32' ? 'npm.cmd' : 'npm'

0 commit comments

Comments
 (0)