Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): runExecutor should set overrides_unparsed to mimic the inv…
…ocation from the terminal
- Loading branch information
Showing
5 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/nx/src/utils/serialize-overrides-into-command-line.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export function serializeOverridesIntoCommandLine(args: { | ||
[k: string]: any; | ||
}): string[] { | ||
const r = args['_'] ? [...args['_']] : []; | ||
Object.keys(args).forEach((a) => { | ||
if (a !== '_') { | ||
r.push( | ||
typeof args[a] === 'string' && args[a].includes(' ') | ||
? `--${a}="${args[a].replace(/"/g, '"')}"` | ||
: `--${a}=${args[a]}` | ||
); | ||
} | ||
}); | ||
return r; | ||
} |
da1faaf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nx-dev – ./
nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app