Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inflate-bundled.js « install « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 913a058468cc8b917127c28ee85e55ae09fccf3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
var path = require('path')
var validate = require('aproba')

module.exports = function inflateBundled (parent, children) {
  validate('OA', arguments)
  children.forEach(function (child) {
    child.fromBundle = true
    child.parent = parent
    child.path = path.join(parent.path, child.package.name)
    child.realpath = path.resolve(parent.realpath, child.package.name)
    child.isLink = child.isLink || parent.isLink || parent.target
    inflateBundled(child, child.children)
  })
}