From 7f5137da84e5d0f1b31f9011c57fc0e3bfaa9252 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Mon, 16 May 2022 21:01:30 -0400 Subject: [PATCH] fix(core): default project is not set correctly --- packages/nx/src/command-line/run-one.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/run-one.ts b/packages/nx/src/command-line/run-one.ts index a6f30fc8fb868..c96603362e7bb 100644 --- a/packages/nx/src/command-line/run-one.ts +++ b/packages/nx/src/command-line/run-one.ts @@ -100,8 +100,8 @@ function parseRunOneOptions( ); // this is to account for "nx npmsript:dev" if (project && !target && defaultProjectName) { - project = defaultProjectName; target = project; + project = defaultProjectName; } } else { target = parsedArgs['project:target:configuration'];