Skip to content

feat(hydrate-script): add generatePackageJson option to dist-hydrate-script#6571

Merged
johnjenkins merged 3 commits intostenciljs:mainfrom
alexischarp:feat/hydrate-out-out-pkgjson
Jan 28, 2026
Merged

feat(hydrate-script): add generatePackageJson option to dist-hydrate-script#6571
johnjenkins merged 3 commits intostenciljs:mainfrom
alexischarp:feat/hydrate-out-out-pkgjson

Conversation

@alexischarp
Copy link
Contributor

@alexischarp alexischarp commented Jan 27, 2026

What is the current behavior?

The dist-hydrate-script output target always writes a hydrate-dist-dir/package.json.
GitHub Issue Number: #6570

What is the new behavior?

Closes #6570

Add a generatePackageJson option on the dist-hydrate-script output target. When set to false, Stencil skips writing hydrate/package.json (default remains true).

Documentation

Did not find related documentation for dist-hydrate-script config but I updated the types.

Does this introduce a breaking change?

  • Yes
  • No

Testing

  • Unit tests (npm run test -- dist-hydrate-script)
  • Testing with a local link incoming

Other information

n/a

@alexischarp alexischarp requested a review from a team as a code owner January 27, 2026 15:58
@johnjenkins
Copy link
Contributor

hey @alexischarp - can you look at fixing the unit tests in Windows? 🙏

@alexischarp alexischarp force-pushed the feat/hydrate-out-out-pkgjson branch from 65658d0 to fad8609 Compare January 28, 2026 08:29
@alexischarp
Copy link
Contributor Author

hey @alexischarp - can you look at fixing the unit tests in Windows? 🙏

Ofc, I'll try.
I don't have a windows machine to test it out but I committed something that could do the trick.
Waiting on someone to launch the pipelines ^^

@johnjenkins johnjenkins changed the title feat(hydrate): add generatePackageJson option to hydrate output target feat(hydrate-script): add generatePackageJson option to dist-hydrate-script Jan 28, 2026
@johnjenkins johnjenkins added this pull request to the merge queue Jan 28, 2026
Merged via the queue into stenciljs:main with commit f2dbed7 Jan 28, 2026
69 checks passed
@alexischarp alexischarp deleted the feat/hydrate-out-out-pkgjson branch January 28, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: opt-out from package.json generation for dist-hydrate-script output target

2 participants