Skip to content

Commit 1604c64

Browse files
committed
fix(@angular/cli): Add smart default provider for default project
1 parent 0bd1f61 commit 1604c64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/@angular/cli/models/schematic-command.ts

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ export abstract class SchematicCommand extends Command {
114114
return rawArgs;
115115
}
116116
});
117+
const defaultProjectName = this._workspace.getDefaultProjectName();
118+
workflow.registry.addSmartDefaultProvider('projectName', (_schema: JsonObject) => {
119+
return defaultProjectName;
120+
});
117121
delete schematicOptions._;
118122

119123
workflow.reporter.subscribe((event: DryRunEvent) => {

0 commit comments

Comments
 (0)