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): add --exclude-task-dependencies flag #27137

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Conversation

AgentEnder
Copy link
Member

@AgentEnder AgentEnder commented Jul 25, 2024

Current Behavior

There is no option to exclude dependent tasks when running Nx.

Expected Behavior

There is a flag, --exclude-task-dependencies, to exclude task deps from running. This is inline with other tools:

Related Issue(s)

Fixes #18053

@AgentEnder AgentEnder requested review from a team as code owners July 25, 2024 22:18
Copy link

vercel bot commented Jul 25, 2024

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

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jul 26, 2024 3:57pm

Copy link
Collaborator

@isaacplmann isaacplmann left a comment

Choose a reason for hiding this comment

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

Typo in the help text

@@ -79,6 +80,12 @@ export function withRunOptions<T>(yargs: Argv<T>): Argv<T & RunOptions> {
type: 'boolean',
default: false,
})
.options('noDependencies', {
describe: 'Skips running dependant tasks first',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
describe: 'Skips running dependant tasks first',
describe: 'Skips running dependent tasks first',

@@ -32,7 +32,7 @@ export async function affected(
(TargetDependencyConfig | string)[]
> = {},
extraOptions = {
excludeTaskDependencies: false,
excludeTaskDependencies: args.noDependencies,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's change the arg to --exclude-task-dependencies

@FrozenPandaz FrozenPandaz changed the title feat(core): add --no-deps flag feat(core): add --exclude-task-dependencies flag Jul 26, 2024
@AgentEnder AgentEnder merged commit 9a556f4 into master Jul 26, 2024
6 checks passed
@AgentEnder AgentEnder deleted the feat/no-deps branch July 26, 2024 17:48
Copy link

github-actions bot commented Aug 1, 2024

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 Aug 1, 2024
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.

Add Ignore dependencies CLI option
3 participants