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

Commit

Permalink
fix(rm): fix up config stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 29, 2018
1 parent 43f8356 commit 69312aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/commands/rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ async function rm (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 RemoveConfig = figgyPudding({
log: { default: () => log },
log: {},
silent: {}
}, { other () { return true } })

const opts = RemoveConfig(npmConfig().concat(argv).concat({ log }))
const opts = RemoveConfig(npmConfig(argv))

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

0 comments on commit 69312aa

Please sign in to comment.