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

Commit

Permalink
fix(add): ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 1, 2018
1 parent eb268ce commit 1cc5ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/commands/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const AddConfig = figgyPudding({
module.exports = add
async function add (argv, opts) {
opts = AddConfig(opts)
const packages = argv.concat(opts.packages)
const packages = argv.packages || []

await new BB((resolve, reject) => {
const npmBin = process.platform === 'win32' ? 'npm.cmd' : 'npm'
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const PrepareOpts = figgyPudding({
})

module.exports = prepare
async function prepare (packages, opts) {
async function prepare (argv, opts) {
opts = PrepareOpts(opts)
packages = [...new Set(packages.concat(opts.packages || []))]
const packages = [...new Set(argv.packages || [])]

if (opts.force || !await checkPkgLock()) {
opts.log.verbose('prepare', 'Fetching and installing dependencies.')
Expand Down

0 comments on commit 1cc5ad0

Please sign in to comment.