jspm / jspm-cli

ES Module Package Manager
https://jspm.org
Apache License 2.0
3.79k stars 272 forks source link

Package builds #2526

Open guybedford opened 4 years ago

guybedford commented 4 years ago

WIth jspm install, you can install a file or an entire package via jspm install preact for just the main or jspm install preact/ for all exports.

Similarly for the build, we could enable package builds via this trailing slash, as it extends the same meaning of building all exports instead of just the main.

In addition we can infer the trailing slash when pointing to a directory to build anyway.

The output would include all entry points as well as a built package.json file for the entire built package.

This build is then exactly the local build, and should eventually be the same build used by the jspm install --verify system as well.

Extending package builds to multiple package builds, is then the multi monorepo build use case.