bundle dependency with native dependencies

40 views
Skip to first unread message

José F. Romaniello

unread,
Nov 25, 2013, 9:16:08 AM11/25/13
to nod...@googlegroups.com
I have a module with a bunch of bundled dependencies (bundledDependencies in package.json). I've noticed that if the bundled dependency is native (compiled/node-gyp)  it will be rebuild when I install my module. However, it the bundled dependency has a dependency on a native module this will not be rebuild when installed.

A --- bundles --> B
  In this case B is build when installing A.


A --- bundles --> B --- depends on --> C
  C is not build when installing A.

I'm not sure if doing an "npm rebuild" after installing A will rebuild C. 

Matthew Adams

unread,
Aug 10, 2015, 4:59:55 PM8/10/15
to nodejs, jfroma...@gmail.com
NB:  quite a while later.

We just hit this.  My workaround was to cd into the bundled dependency and issue command `npm rebuild`.  I'm having to do this as a one-off for each dependency in this category (bundled dependency with native code).

It'd be jim-dandy if someone could propose a general (and recursive) solution to this problem.

-matthew
Reply all
Reply to author
Forward
0 new messages