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

Commit 69312aa

Browse files
committed
fix(rm): fix up config stuff
1 parent 43f8356 commit 69312aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/commands/rm.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ async function rm (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 RemoveConfig = figgyPudding({
40-
log: { default: () => log },
39+
log: {},
4140
silent: {}
4241
}, { other () { return true } })
4342

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

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

0 commit comments

Comments
 (0)