File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11{
2- "version" : " 0.2.3 " ,
2+ "version" : " 0.2.4 " ,
33 "name" : " dotup-typescript-yeoman-generators" ,
44 "author" : {
55 "name" : " Peter Ullrich" ,
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ export abstract class BaseGenerator<TStep extends string> extends generator impl
2323 static counter : number = 0 ;
2424 static sharedOptions : SharedOptions < string > ;
2525
26-
26+
2727 public get sharedOptions ( ) : SharedOptions < TStep > {
2828 return BaseGenerator . sharedOptions ;
2929 }
30-
30+
3131 readonly projectInfo : ProjectInfo ;
3232 private readonly doNotEjsReplace : string [ ] = [ ] ;
3333
@@ -62,6 +62,10 @@ export abstract class BaseGenerator<TStep extends string> extends generator impl
6262 this . composeWith ( require . resolve ( 'generator' ) , optArgs ) ;
6363 }
6464
65+ subscribeSharedOption ( questionName : TStep | string ) : void {
66+ this . sharedOptions . subscribe ( this , questionName ) ;
67+ }
68+
6569 addSkipEjsReplacement ( targetPath : string ) : void {
6670 this . doNotEjsReplace . push ( targetPath ) ;
6771 }
You can’t perform that action at this time.
0 commit comments