You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(build): bundle @npmcli/package-json with subpath exports
Fix the bundling system to create standalone bundles for @npmcli/package-json
and its subpath imports (lib/read-package, lib/sort), resolving module not
found errors in the editable package.json workflow.
Build changes:
- Add subpaths field to scoped package config for bundling subpath exports
- Enhance orchestrator to bundle subpaths as standalone files
- Remove directory copying (replaced with proper bundles)
Source changes:
- Create entry point for @npmcli/package-json main export
- Add entry points for lib/read-package and lib/sort subpaths
This produces 33 bundled packages (up from 31):
- dist/external/@npmcli/package-json.js (236KB)
- dist/external/@npmcli/package-json/lib/read-package.js (2.4KB)
- dist/external/@npmcli/package-json/lib/sort.js (2.2KB)
All bundles are zero-dependency standalone modules created by esbuild.
Fixes: test/packages/operations.test.ts editable package.json tests
0 commit comments