Skip to content

Commit b7ae8ba

Browse files
author
Peter Ullrich
committed
writeOptionsToAnswers
1 parent 37000fa commit b7ae8ba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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.4.4",
2+
"version": "1.0.0",
33
"name": "dotup-typescript-yeoman-generators",
44
"author": {
55
"name": "Peter Ullrich",

src/BaseGenerator.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ export abstract class BaseGenerator<TStep extends string> extends generator {
227227
keys.forEach(key => {
228228
if (opt[key] !== undefined) {
229229
this.answers[key] = opt[key];
230+
if (BaseGenerator.sharedOptions) {
231+
BaseGenerator.sharedOptions.setAnswer(key, opt[key]);
232+
}
230233
}
231234
});
232235
}

0 commit comments

Comments
 (0)