Skip to content

Commit 1e9fd5f

Browse files
authored
feat(@angular/cli): allow override of configuration for ng run
closes #10569
1 parent d173253 commit 1e9fd5f

File tree

1 file changed

+5
-1
lines changed
  • packages/@angular/cli/commands

1 file changed

+5
-1
lines changed

packages/@angular/cli/commands/run.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ export default class RunCommand extends ArchitectCommand {
1616

1717
public async run(options: RunOptions) {
1818
if (options.target) {
19-
const [project, target, configuration] = options.target.split(':');
19+
let [project, target, configuration] = options.target.split(':');
2020
const overrides = { ...options };
2121
delete overrides.target;
22+
if (overrides.configuration) {
23+
configuration = overrides.configuration;
24+
delete overrides.configuration;
25+
}
2226
return this.runArchitectTarget({
2327
project,
2428
target,

0 commit comments

Comments
 (0)