Skip to content

Commit

Permalink
feat(@angular-devkit/architect-cli): show warning when using deprecat…
Browse files Browse the repository at this point in the history
…ed options
  • Loading branch information
alan-agius4 committed Aug 17, 2020
1 parent 797bcf9 commit e40c72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/angular/cli/models/architect-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export abstract class ArchitectCommand<

this._registry = new json.schema.CoreSchemaRegistry();
this._registry.addPostTransform(json.schema.transforms.addUndefinedDefaults);
this._registry.useXDeprecatedProvider(msg => this.logger.warn(msg));

const { workspace } = await workspaces.readWorkspace(
this.workspace.root,
Expand Down
3 changes: 3 additions & 0 deletions packages/angular_devkit/architect_cli/bin/architect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ async function main(args: string[]): Promise<number> {
const registry = new schema.CoreSchemaRegistry();
registry.addPostTransform(schema.transforms.addUndefinedDefaults);

// Show usage of deprecated options
registry.useXDeprecatedProvider(msg => logger.warn(msg));

const { workspace } = await workspaces.readWorkspace(
configFilePath,
workspaces.createWorkspaceHost(new NodeJsSyncHost()),
Expand Down

0 comments on commit e40c72a

Please sign in to comment.