If one bundles an entrypoint with a package.json that does not have a name, the compartment mapper fails with an uninformative diagnostic. The bundler should produce a better error if it finds a package.json without a name.
Steps to reproduce
Create a package.json without a name.
Create an entry.js module.
Attempt to bundle with bundle-source provided by @endo/bundle-source
Expected behavior
The bundler should fail with an error diagnostic referring the the package.json that did not have a name, possibly suggesting one based on the parent directory name. The suggestion cannot be reliably inferred because of workspaces.
Describe the bug
If one bundles an entrypoint with a
package.json
that does not have aname
, the compartment mapper fails with an uninformative diagnostic. The bundler should produce a better error if it finds apackage.json
without aname
.Steps to reproduce
bundle-source
provided by@endo/bundle-source
Expected behavior
The bundler should fail with an error diagnostic referring the the
package.json
that did not have a name, possibly suggesting one based on the parent directory name. The suggestion cannot be reliably inferred because of workspaces.Platform environment
All