File tree Expand file tree Collapse file tree
etc/api/angular_devkit/core/src
packages/angular_devkit/core/src/workspace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ export declare class ProjectDefinitionCollection extends DefinitionCollection<Pr
773773 root : string ;
774774 sourceRoot ?: string ;
775775 prefix ?: string ;
776- targets ?: Record < string , TargetDefinition > ;
776+ targets ?: Record < string , TargetDefinition | undefined > ;
777777 [ key : string ] : unknown ;
778778 } ) : this;
779779 set ( name : string , value : ProjectDefinition ) : this;
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class ProjectDefinitionCollection extends DefinitionCollection<ProjectDef
146146 root : string ,
147147 sourceRoot ?: string ,
148148 prefix ?: string ,
149- targets ?: Record < string , TargetDefinition > ,
149+ targets ?: Record < string , TargetDefinition | undefined > ,
150150 [ key : string ] : unknown ,
151151 } ,
152152 ) : this {
@@ -165,7 +165,9 @@ export class ProjectDefinitionCollection extends DefinitionCollection<ProjectDef
165165
166166 if ( definition . targets ) {
167167 for ( const [ name , target ] of Object . entries ( definition . targets ) ) {
168- project . targets . set ( name , target ) ;
168+ if ( target ) {
169+ project . targets . set ( name , target ) ;
170+ }
169171 }
170172 }
171173
You can’t perform that action at this time.
0 commit comments