Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9307703c1981a1ba8256dca094175cd5630681d2
Choose a base ref
..
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: faa224c168e8cfdaf00f6d127e2d089da665ca09
Choose a head ref
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/install/action/extract.js
5 changes: 4 additions & 1 deletion lib/install/action/extract.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ const moduleStagingPath = require('../module-staging-path.js')
const move = require('../../utils/move.js')
const npa = require('npm-package-arg')
const npm = require('../../npm.js')
const npmConfig = require('../../config/figgy-config.js')
let npmConfig
const packageId = require('../../utils/package-id.js')
const path = require('path')
const localWorker = require('./extract-worker.js')
@@ -47,6 +47,9 @@ module.exports = extract
function extract (staging, pkg, log) {
log.silly('extract', packageId(pkg))
const extractTo = moduleStagingPath(staging, pkg)
if (!npmConfig) {
npmConfig = require('../../config/figgy-config.js')
}
let opts = ExtractOpts(npmConfig()).concat({
integrity: pkg.package._integrity,
resolved: pkg.package._resolved