File tree 1 file changed +11
-16
lines changed
packages/angular_devkit/architect/src
1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -45,29 +45,24 @@ export async function scheduleByName(
45
45
const info = description . info as BuilderInfo ;
46
46
const id = ++ _uniqueId ;
47
47
48
+ const message = {
49
+ id,
50
+ currentDirectory : workspaceRoot ,
51
+ workspaceRoot : currentDirectory ,
52
+ info : info ,
53
+ options : buildOptions ,
54
+ ...( options . target ? { target : options . target } : { } ) ,
55
+ } ;
56
+
48
57
// Wait for the job to be ready.
49
58
if ( job . state !== experimental . jobs . JobState . Started ) {
50
59
stateSubscription = job . outboundBus . subscribe ( event => {
51
60
if ( event . kind === experimental . jobs . JobOutboundMessageKind . Start ) {
52
- job . input . next ( {
53
- id,
54
- currentDirectory : workspaceRoot ,
55
- workspaceRoot : currentDirectory ,
56
- info : info ,
57
- options : buildOptions ,
58
- ...( options . target ? { target : options . target } : { } ) ,
59
- } ) ;
61
+ job . input . next ( message ) ;
60
62
}
61
63
} ) ;
62
64
} else {
63
- job . input . next ( {
64
- id,
65
- currentDirectory : workspaceRoot ,
66
- workspaceRoot : currentDirectory ,
67
- info : info ,
68
- options : buildOptions ,
69
- ...( options . target ? { target : options . target } : { } ) ,
70
- } ) ;
65
+ job . input . next ( message ) ;
71
66
}
72
67
73
68
const logChannelSub = job . getChannel < logging . LogEntry > ( 'log' ) . subscribe ( entry => {
You can’t perform that action at this time.
0 commit comments