-
-
Notifications
You must be signed in to change notification settings - Fork 832
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Add a config option to disable generating hydrate/package.json for the dist-hydrate-script output target.
Describe the Use Case
In monorepos, the generated hydrate/package.json creates an extra package entry that changes lockfiles.
Moreover the current name given to the package is incorrect (e.g. @org/web-components/hydrate).
Finally, some consumers may not need a separate hydrate package because they would publish part of the main package.
Describe Preferred Solution
Introduce a boolean option (e.g. generatePackageJson or similar) to skip writing hydrate/package.json. Default remains current behavior to avoid breaking changes.
Describe Alternatives
No response
Related Code
No response
Additional Information
There was previous discussion about removing it, but it’s currently kept for compatibility. This opt‑out would allow users to avoid the file now and remove it fully in a future major.