From 5da650abb10871dc96b9f3ef23eebaaa3145dc10 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Thu, 13 Apr 2023 17:55:25 -0400 Subject: [PATCH] fix(core): run-many doesn't strip quotes surrounding target names (#16211) --- packages/nx/src/command-line/nx-commands.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/nx-commands.ts b/packages/nx/src/command-line/nx-commands.ts index 7cf8508cff668..3c1a2eac6ecec 100644 --- a/packages/nx/src/command-line/nx-commands.ts +++ b/packages/nx/src/command-line/nx-commands.ts @@ -1095,7 +1095,10 @@ function parseCSV(args: string[] | string) { if (Array.isArray(args)) { return args; } - return args.split(','); + const items = args.split(','); + return items.map((i) => + i.startsWith('"') && i.endsWith('"') ? i.slice(1, -1) : i + ); } function linkToNxDevAndExamples(yargs: yargs.Argv, command: string) {