Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
},
"homepage": "https://github.com/angular/angular-cli",
"dependencies": {
"@angular-devkit/architect": "0.5.0",
"@angular-devkit/core": "0.5.0",
"@angular-devkit/schematics": "0.5.0",
"@schematics/angular": "0.5.0",
"@schematics/update": "0.5.0",
"@angular-devkit/architect": "angular/angular-devkit-architect-builds",
"@angular-devkit/core": "angular/angular-devkit-core-builds",
"@angular-devkit/schematics": "angular/angular-devkit-schematics-builds",
"@schematics/angular": "angular/schematics-angular-builds",
"@schematics/update": "angular/schematics-update-builds",
"chalk": "~2.2.0",
"ember-cli-string-utils": "^1.0.0",
"fs-extra": "^4.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/@angular/cli/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const SilentError = require('silent-error');
export default class AddCommand extends SchematicCommand {
readonly name = 'add';
readonly description = 'Add support for a library to your project.';
readonly allowPrivateSchematics = true;
scope = CommandScope.inProject;
arguments = ['collection'];
options: Option[] = [];
Expand Down
2 changes: 2 additions & 0 deletions packages/@angular/cli/models/schematic-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface GetOptionsResult {

export abstract class SchematicCommand extends Command {
readonly options: Option[] = [];
readonly allowPrivateSchematics: boolean = false;
private _host = new NodeJsSyncHost();
private _workspace: experimental.workspace.Workspace;
private _deAliasedName: string;
Expand Down Expand Up @@ -140,6 +141,7 @@ export abstract class SchematicCommand extends Command {
options: schematicOptions,
debug: debug,
logger: this.logger,
allowPrivate: this.allowPrivateSchematics,
})
.subscribe({
error: (err: Error) => {
Expand Down