Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Commit

Permalink
fix(extract): use new pacote resolved opt
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jan 7, 2018
1 parent cbdebb4 commit 7ef15e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ module.exports = {
workerFarm.end(this._workers)
},

child (name, child, childPath, opts) {
child (name, child, childPath, config, opts) {
if (child.bundled) return BB.resolve()

const spec = npa.resolve(name, child.resolved || child.version)
const childOpts = opts.toPacote(Object.assign({
integrity: child.integrity
const spec = npa.resolve(name, child.version)
const childOpts = config.toPacote(Object.assign({
integrity: child.integrity,
resolved: child.resolved
}, {
dirPacker: opts.dirPacker
dirPacker: config.dirPacker
}))
const args = [spec, childPath, childOpts]
return BB.fromNode((cb) => {
let launcher = extractionWorker
let msg = args
const spec = typeof args[0] === 'string' ? npa(args[0]) : args[0]
childOpts.loglevel = childOpts.log.level
childOpts.loglevel = opts.log.level
if (spec.registry || spec.type === 'remote') {
// We can't serialize these options
childOpts.config = null
childOpts.loglevel = childOpts.log.level
childOpts.log = null
childOpts.dirPacker = null
// workers will run things in parallel!
Expand Down

0 comments on commit 7ef15e2

Please sign in to comment.