File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const SilentError = require('silent-error');
11
11
export default class AddCommand extends SchematicCommand {
12
12
readonly name = 'add' ;
13
13
readonly description = 'Add support for a library to your project.' ;
14
+ readonly allowPrivateSchematics = true ;
14
15
scope = CommandScope . inProject ;
15
16
arguments = [ 'collection' ] ;
16
17
options : Option [ ] = [ ] ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export interface GetOptionsResult {
34
34
35
35
export abstract class SchematicCommand extends Command {
36
36
readonly options : Option [ ] = [ ] ;
37
+ readonly allowPrivateSchematics : boolean = false ;
37
38
private _host = new NodeJsSyncHost ( ) ;
38
39
private _workspace : experimental . workspace . Workspace ;
39
40
private _deAliasedName : string ;
@@ -140,6 +141,7 @@ export abstract class SchematicCommand extends Command {
140
141
options : schematicOptions ,
141
142
debug : debug ,
142
143
logger : this . logger ,
144
+ allowPrivate : this . allowPrivateSchematics ,
143
145
} )
144
146
. subscribe ( {
145
147
error : ( err : Error ) => {
You can’t perform that action at this time.
0 commit comments