From 0e5531ed7f6964f61fd850646eb6c0811661e41c Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Thu, 12 Jan 2023 10:54:02 -0500 Subject: [PATCH] fix(core): do not capture --target when using nx run --- docs/generated/cli/exec.md | 6 ------ docs/generated/packages/nx/documents/exec.md | 6 ------ packages/nx/src/command-line/nx-commands.ts | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/generated/cli/exec.md b/docs/generated/cli/exec.md index 804de6fd12b0b..31360eccf5a84 100644 --- a/docs/generated/cli/exec.md +++ b/docs/generated/cli/exec.md @@ -79,12 +79,6 @@ Default: `false` Rerun the tasks even when the results are available in the cache -### targets - -Type: `string` - -Tasks to run for affected projects - ### verbose Type: `boolean` diff --git a/docs/generated/packages/nx/documents/exec.md b/docs/generated/packages/nx/documents/exec.md index 804de6fd12b0b..31360eccf5a84 100644 --- a/docs/generated/packages/nx/documents/exec.md +++ b/docs/generated/packages/nx/documents/exec.md @@ -79,12 +79,6 @@ Default: `false` Rerun the tasks even when the results are available in the cache -### targets - -Type: `string` - -Tasks to run for affected projects - ### verbose Type: `boolean` diff --git a/packages/nx/src/command-line/nx-commands.ts b/packages/nx/src/command-line/nx-commands.ts index 15c7b37f9f645..3f93d1b06e767 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -731,7 +731,7 @@ function withRunOneOptions(yargs: yargs.Argv) { ); const res = withRunOptions( - withOutputStyleOption(withTargetAndConfigurationOption(yargs, false), [ + withOutputStyleOption(withConfiguration(yargs), [ 'dynamic', 'static', 'stream',