mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-08 07:47:21 +00:00
push all website files
This commit is contained in:
18
website/node_modules/npm/lib/install/inflate-bundled.js
generated
vendored
Normal file
18
website/node_modules/npm/lib/install/inflate-bundled.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict'
|
||||
|
||||
var childPath = require('../utils/child-path.js')
|
||||
var reset = require('./node.js').reset
|
||||
|
||||
module.exports = function inflateBundled (bundler, parent, children) {
|
||||
children.forEach(function (child) {
|
||||
if (child.fromBundle === bundler) return
|
||||
reset(child)
|
||||
child.fromBundle = bundler
|
||||
child.isInLink = bundler.isLink
|
||||
child.parent = parent
|
||||
child.path = childPath(parent.path, child)
|
||||
child.realpath = bundler.isLink ? child.realpath : childPath(parent.realpath, child)
|
||||
child.isLink = child.isLink || parent.isLink || parent.target
|
||||
inflateBundled(bundler, child, child.children)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user