Skip to content

Commit 4c4e408

Browse files
clydinhansl
authored andcommitted
fix(@angular/cli): avoid throwing on an empty project/target
1 parent 5198b3d commit 4c4e408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/cli/models/architect-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ export abstract class ArchitectCommand extends Command<ArchitectCommandOptions>
267267
}
268268

269269
if (!project) {
270-
throw new Error('No project specified');
270+
project = '';
271271
}
272272
if (!target) {
273-
throw new Error('No project target specified');
273+
target = '';
274274
}
275275

276276
return {

0 commit comments

Comments
 (0)