Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): update dependsOn configuration to use dependencies property #16584

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

AgentEnder
Copy link
Member

…ty rather than tokens

Current Behavior

We introduced {self} and {dependencies} for TargetDependencyConfig['projects'], but have decided to move in a slightly different direction.

Expected Behavior

Instead, we use the lack of a projects field to indicate self, and a field dependencies: true to indicate dependencies.

Also, this is equivalent for hashing and inputs.

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Apr 26, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 26, 2023 8:21pm

const partialHashes: Promise<PartialHash[]>[] = [];
for (const input of projectInputs) {
for (const project of input.projects) {
console.log(project, this.projectGraph.nodes[project]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rm

this.nxJson,
this.projectGraph.nodes[project]
);
const expandedInput = expandSelfInputs(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expandSingleProjectInputs

[{ input: input.input }],
namedInputs
);
partialHashes.push(this.hashSelfInputs(project, expandedInput));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hashSingleProjectInputs

@AgentEnder AgentEnder force-pushed the feat/update-depends-on-config branch from 3941696 to 8c9041d Compare April 26, 2023 20:18
@AgentEnder AgentEnder changed the title feat(core): update dependsOn configuration to use dependencies proper… feat(core): update dependsOn configuration to use dependencies property Apr 26, 2023
@AgentEnder AgentEnder merged commit ac64773 into nrwl:master Apr 26, 2023
@github-actions
Copy link

github-actions bot commented May 2, 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 May 2, 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