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

Commit

Permalink
fix(add): 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 0a76abd commit 10ad858
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/commands/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 10ad858

Please sign in to comment.