File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/@angular/cli/commands Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { ArchitectCommand } from '../models/architect-command';
3
3
4
4
export interface RunOptions {
5
5
target : string ;
6
+ configuration ?: string ;
6
7
}
7
8
8
9
export default class RunCommand extends ArchitectCommand {
@@ -16,9 +17,13 @@ export default class RunCommand extends ArchitectCommand {
16
17
17
18
public async run ( options : RunOptions ) {
18
19
if ( options . target ) {
19
- const [ project , target , configuration ] = options . target . split ( ':' ) ;
20
+ let [ project , target , configuration ] = options . target . split ( ':' ) ;
20
21
const overrides = { ...options } ;
21
22
delete overrides . target ;
23
+ if ( overrides . configuration ) {
24
+ configuration = overrides . configuration ;
25
+ delete overrides . configuration ;
26
+ }
22
27
return this . runArchitectTarget ( {
23
28
project,
24
29
target,
You can’t perform that action at this time.
0 commit comments