smclab / titaniumifier

Get a Titanium™ SDK CommonJS module out of a Node package!
GNU Lesser General Public License v2.1
95 stars 15 forks source link

Merge descendant’s `nativeDependencies` once traversed #14

Closed yuchi closed 9 years ago

yuchi commented 9 years ago

(See #13)

Given the following (fictious) dependency graph

liferay-connector
├── it.smc.navitems (native)
└── superagent
    └── it.smc.softkeyboard (native)

There’s nothing in the build process which tells us about it.smc.softkeyboard.

We need to parse all the package.json of traversed packages to discover them.

yuchi commented 9 years ago

This also means that if no require('superagent') happens then we’ll not get the native dependency neither.