File tree 1 file changed +6
-2
lines changed
packages/angular_devkit/architect/node
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ function findProjectTarget(
55
55
throw new Error ( 'Project target does not exist.' ) ;
56
56
}
57
57
58
+ if ( ! targetDefinition . builder ) {
59
+ throw new Error ( `A builder is not set for target '${ target } ' in project '${ project } '.` ) ;
60
+ }
61
+
58
62
return targetDefinition ;
59
63
}
60
64
@@ -74,9 +78,9 @@ export class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModu
74
78
} else {
75
79
this . workspaceHost = {
76
80
async getBuilderName ( project , target ) {
77
- const targetDefinition = findProjectTarget ( workspaceOrHost , project , target ) ;
81
+ const { builder } = findProjectTarget ( workspaceOrHost , project , target ) ;
78
82
79
- return targetDefinition . builder ;
83
+ return builder ;
80
84
} ,
81
85
async getOptions ( project , target , configuration ) {
82
86
const targetDefinition = findProjectTarget ( workspaceOrHost , project , target ) ;
You can’t perform that action at this time.
0 commit comments