Skip to content

fix: do not replace but merge Node manifest options into default options#1577

Merged
ayushmanchhabra merged 1 commit into
nwutils:mainfrom
townofdon:main
Apr 25, 2026
Merged

fix: do not replace but merge Node manifest options into default options#1577
ayushmanchhabra merged 1 commit into
nwutils:mainfrom
townofdon:main

Conversation

@townofdon
Copy link
Copy Markdown
Contributor

  • Overrides options correctly if the node manifest is present.

Currently, if the node manifest is provided via package.json, all of the default options get blown away due to this mutation:

options = manifest.json.nwbuild;

This change applies the manifest options as an override on top of the existing options.

@ayushmanchhabra
Copy link
Copy Markdown
Collaborator

ayushmanchhabra commented Apr 25, 2026

Thanks! Need a test for this, this issue keeps coming back again and again
I think this was done intentionally, I'm not sure. Will look into the git history.

Update: Got it, this removes all the default options as you mentioned.

@ayushmanchhabra ayushmanchhabra changed the title override options correctly with node manifest options fix: do not replace and merge Node manifest options into default options Apr 25, 2026
@ayushmanchhabra ayushmanchhabra changed the title fix: do not replace and merge Node manifest options into default options fix: do not replace but merge Node manifest options into default options Apr 25, 2026
@ayushmanchhabra ayushmanchhabra merged commit 04dc8b7 into nwutils:main Apr 25, 2026
3 checks passed
ayushmanchhabra pushed a commit that referenced this pull request Apr 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[4.17.8](v4.17.7...v4.17.8)
(2026-04-25)


### Bug Fixes

* **bld:** remove MacOS Plugin Helper renaming logic
([#1581](#1581))
([43f2caa](43f2caa))
* **deps:** bump @xmldom/xmldom from 0.8.12 to 0.8.13
([#1574](#1574))
([becde28](becde28))
* do not replace but merge Node manifest options into default options
([#1577](#1577))
([04dc8b7](04dc8b7))


### Chores

* **deps:** bump the gha group across 1 directory with 2 updates
([#1573](#1573))
([70a79c4](70a79c4))
* **deps:** bump the npm group across 1 directory with 4 updates
([#1582](#1582))
([805bb51](805bb51))
* refactor out run mode logic to @nwutils/runner
([#1579](#1579))
([ef38439](ef38439))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants