jspm / generator

JSPM Import Map Generator
Apache License 2.0
166 stars 21 forks source link

Prioritise `dependencies` and `peerDependencies` over `devDependencies`. #211

Closed Bubblyworld closed 1 year ago

Bubblyworld commented 1 year ago

Currently the generator takes version constraints from devDependencies, even if the same package is present in dependencies or peerDependencies.

Bubblyworld commented 1 year ago

I think this was actually caused by the issue in the linked PR: it wasn't that jspm was picking the dev dependencies over ordinary dependencies, it was that jspm was missing the lock entirely and installing latest from the pjson (which happened to coincide with the dev version).