shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
412 stars 34 forks source link

Nested napa dependencies not resolving correctly #80

Open LKay opened 6 years ago

LKay commented 6 years ago

I have two projects and one (Project A) have some dependencies through napa. Then I have another project (Project B) which has the first one added as dependency. Regular yarn or npm install commands run fine, but only first dependency defined in napa is resolved and other are ignored. This causes compiling errors as not all dependencies are present in node_modules.

Example in package.json in Project A:

  "napa": {
    "country-list": "umpirsky/country-list#2.0.2",
    "currency-list": "umpirsky/currency-list#1.0.1"
  }

These are resolved in full on the Project A but when runing yarn or npm install on Project B only country-list gets resolved.