A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/npm/commit/d21ab57c3ef4f01d41fb6c2103debe884a17dc22 below:

Fix unpruned and incorrectly pruned dependencies · npm/npm@d21ab57 · GitHub

This repository was archived by the owner on Aug 11, 2022. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+2

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-3

lines changed Original file line number Diff line number Diff line change

@@ -11,7 +11,7 @@ var util = require('util')

11 11

var moduleName = require('./utils/module-name.js')

12 12

var Installer = require('./install.js').Installer

13 13

var isExtraneous = require('./install/is-extraneous.js')

14 -

var isDev = require('./install/is-dev-dep.js')

14 +

var isOnlyDev = require('./install/is-only-dev.js')

15 15

var removeDeps = require('./install/deps.js').removeDeps

16 16

var loadExtraneous = require('./install/deps.js').loadExtraneous

17 17

var chain = require('slide').chain

@@ -42,8 +42,7 @@ Pruner.prototype.loadAllDepsIntoIdealTree = function (cb) {

42 42

if (isExtraneous(child)) return true

43 43

if (!excludeDev) return false

44 44

var childName = moduleName(child)

45 -

var isChildDev = function (parent) { return isDev(parent, childName) }

46 -

if (child.requiredBy.every(isChildDev)) return true

45 +

return isOnlyDev(child)

47 46

}

48 47

function getModuleName (child) {

49 48

// wrapping because moduleName doesn't like extra args and we're called

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4