diff --git a/packages/@angular/cli/models/schematic-command.ts b/packages/@angular/cli/models/schematic-command.ts index abdaace45a4a..d974d9507795 100644 --- a/packages/@angular/cli/models/schematic-command.ts +++ b/packages/@angular/cli/models/schematic-command.ts @@ -116,6 +116,13 @@ export abstract class SchematicCommand extends Command { }); delete schematicOptions._; + workflow.registry.addSmartDefaultProvider('projectName', (_schema: JsonObject) => { + if (this._workspace) { + return this._workspace.getDefaultProjectName(); + } + return undefined; + }); + workflow.reporter.subscribe((event: DryRunEvent) => { nothingDone = false;