Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
inflate-bundled: Initialize nodes from bundled dependencies
Browse files Browse the repository at this point in the history
Note: There's no test for this because it's really easy to repro. Until then, the connected issue (#14427) and others, should not be closed.

PR-URL: #15082
Credit: @iarna
Reviewed-By: @zkat
  • Loading branch information
iarna authored and zkat committed Dec 1, 2016
1 parent 868e691 commit fc61c08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/install/inflate-bundled.js
@@ -1,10 +1,12 @@
'use strict'
var validate = require('aproba')
var childPath = require('../utils/child-path.js')
var reset = require('./node.js').reset

module.exports = function inflateBundled (parent, children) {
validate('OA', arguments)
children.forEach(function (child) {
reset(child)
child.fromBundle = true
child.parent = parent
child.path = childPath(parent.path, child)
Expand Down

0 comments on commit fc61c08

Please sign in to comment.