You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
492 B

'use strict'
var validate = require('aproba')
var childPath = require('../utils/child-path.js')
module.exports = function inflateBundled (parent, children) {
validate('OA', arguments)
children.forEach(function (child) {
child.fromBundle = true
child.parent = parent
child.path = childPath(parent.path, child)
child.realpath = childPath(parent.path, child)
child.isLink = child.isLink || parent.isLink || parent.target
inflateBundled(child, child.children)
})
}