jspm / generator

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

Inputmap resolutions and pinning #134

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

This is a work-in-progress PR for treating inputMap as an authoritative lockfile and resolution override.

There is some complexity in deconstructing it properly to distinguish custom maps from actual lock installs, but it seems like this approach may well work.

This should enable better mutation workflows with input maps including features like uninstalls and submaps.

In addition "imports" in the import map are now treated like "dependencies" in the package.json file in that they form pinned installs that are always maintained. Scopes are then always pruned to remove anything not otherwise accessible from the graph of "imports".