From 1bd9c1203e654eef068dfd48bc0140d49a3860f6 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Tue, 12 Apr 2022 14:28:03 -0500 Subject: [PATCH] fix(core): allow parsing dot notation cli args parse dot notation cli args for env args passed to cypress executor to override cypress.env.json values. i.e. nx e2e project --env.API_URL=localhost:1234 will now correctly give cypress e2e args to override the cypress.env.json values ISSUES CLOSED: #9764 --- packages/nx/src/command-line/nx-commands.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/nx-commands.ts b/packages/nx/src/command-line/nx-commands.ts index 2c20ceb1bed7a..92fb3257ab365 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -25,7 +25,8 @@ yargs.wrap(yargs.terminalWidth()); export const commandsObject = yargs .parserConfiguration({ 'strip-dashed': true, - 'dot-notation': false, + // allow parsing --env.SOME_ARG for cypress cli env args + 'dot-notation': true, }) .usage( `