Skip to content

feat(core): merge target configurations from plugin results#19935

Merged
AgentEnder merged 1 commit intonrwl:masterfrom
AgentEnder:feat/merge-target-configurations-from-plugins
Oct 31, 2023
Merged

feat(core): merge target configurations from plugin results#19935
AgentEnder merged 1 commit intonrwl:masterfrom
AgentEnder:feat/merge-target-configurations-from-plugins

Conversation

@AgentEnder
Copy link
Copy Markdown
Member

Current Behavior

If multiple plugins identify the same target on the same project, whichever plugin identified the target last "wins", in that it completely overwrites the already present target.

Since project.json is implemented as a plugin, this means the configuration inside project.json overwrites the full target block that was identified by any plugin.

Expected Behavior

If the already identified target, and the newly found target are "compatible (either only 1 specifies executor, or the executor matches), then we can merge the target configurations.

This enables overwriting 1 or 2 properties in the project.json, while inference takes care of the rest.

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner October 30, 2023 16:49
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2023 10:54pm

@AgentEnder AgentEnder force-pushed the feat/merge-target-configurations-from-plugins branch 3 times, most recently from 5133b06 to 5b4c7c7 Compare October 30, 2023 17:18
Comment thread packages/nx/src/project-graph/utils/project-configuration-utils.ts Outdated
@AgentEnder AgentEnder force-pushed the feat/merge-target-configurations-from-plugins branch from 5b4c7c7 to 8ae6688 Compare October 30, 2023 22:53
@AgentEnder AgentEnder enabled auto-merge (squash) October 30, 2023 22:54
@AgentEnder AgentEnder merged commit c156058 into nrwl:master Oct 31, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 6, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants