Skip to content

Commit 9c99d34

Browse files
author
Peter Ullrich
committed
SharedOptions
1 parent df2083f commit 9c99d34

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.2.1",
2+
"version": "0.2.2",
33
"name": "dotup-typescript-yeoman-generators",
44
"author": {
55
"name": "Peter Ullrich",

src/BaseGenerator.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,24 @@ export abstract class BaseGenerator<TStep extends string> extends generator impl
2323
static counter: number = 0;
2424
static sharedOptions: SharedOptions<string>;
2525

26+
27+
public get sharedOptions(): SharedOptions<TStep> {
28+
return BaseGenerator.sharedOptions;
29+
}
30+
2631
readonly projectInfo: ProjectInfo;
32+
private readonly doNotEjsReplace: string[] = [];
2733

2834
skipQuestions: boolean = false;
2935
skipGenerator: boolean = false;
3036
projectFiles: Project;
3137

3238
conflictedProjectFiles: Project;
3339

34-
private readonly doNotEjsReplace: string[] = [];
35-
3640
generatorName: string;
3741

3842
answers: TypeSaveProperty<Nested<TStep, string>> = <TypeSaveProperty<Nested<TStep, string>>>{};
3943

40-
41-
// questions: Nested<TStep, IStepQuestion<TStep>>;
4244
questions: IStepQuestion<TStep>[] = [];
4345

4446
currentStep: TStep;

0 commit comments

Comments
 (0)