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

Commit

Permalink
fix(pkglock): fix arguments to prepare in lock worker
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 3, 2018
1 parent 6f28969 commit 65b657c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lock-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function main (cache, integrity, pkg, opts) {
opts.log.notice('fs', 'fetching', `${pkg.name}@${pkg.version}`)
try {
if (!prepare) { prepare = require('./commands/prepare.js') }
const res = await prepare([pkg.name], opts)
const res = await prepare({packages: [pkg.name]}, opts)
if (res && !res.pkgCount) { throw new Error('no packages installed') }
} catch (err) {
if (!ensurePkg) { ensurePkg = require('./ensure-package.js') }
Expand Down

0 comments on commit 65b657c

Please sign in to comment.