blob: c27acd1dc0f4c4f023f72693d19f5103a2fe99b1 (
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)
})
}
|