Skip to content

Commit e4c1b99

Browse files
committed
merge with main
2 parents b07f8b1 + 3247430 commit e4c1b99

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

src/ng-generate/table-prompter/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ function getTtlPaths(promptSubj: Subject<any>, allAnswers: Schema, subscriber: S
202202
case singleAnswer.name === configFileName.name: {
203203
if (singleAnswer.answer !== WIZARD_CONFIG_FILE) {
204204
WIZARD_CONFIG_FILE = `${singleAnswer.answer}-${WIZARD_CONFIG_FILE}`;
205+
allAnswers.configFile = WIZARD_CONFIG_FILE;
205206
}
206207
promptSubj.next(pathDecision);
207208
break;

src/ng-generate/table/index.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,19 @@ export default function (options: Schema): Rule {
6464
export function generateTable(options: Schema): Rule {
6565
options.spinner = ora().start();
6666

67-
if (!options.skipImport) {
68-
options.skipImport = false;
67+
const defaultOptions = {
68+
skipImport: false,
69+
};
70+
71+
if (options.configFile !== WIZARD_CONFIG_FILE) {
72+
options.configFile = WIZARD_CONFIG_FILE;
6973
}
7074

75+
options = {
76+
...defaultOptions,
77+
...options,
78+
};
79+
7180
loadAndApplyConfigFile(options.configFile, options);
7281

7382
if (options.aspectModelTFilesString) {

src/ng-generate/table/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ export interface Schema extends ComponentSchema, DefaultSchema {
6969
complexProps: Array<{prop: string; propsToShow: ComplexEntityProperty[]}>;
7070
skipInstall: boolean;
7171
getOptionalMaterialTheme: boolean;
72+
skipImport: boolean;
7273
}

src/ng-generate/types/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ import {formatGeneratedFiles, loadAndApplyConfigFile} from '../../utils/file';
1919
import {TemplateHelper} from '../../utils/template-helper';
2020
import {visitAspectModel} from './aspect-model-type-generator-visitor';
2121
import {Schema} from './schema';
22+
import {WIZARD_CONFIG_FILE} from "../table-prompter/index";
2223

2324
export default function (options: Schema): Rule {
2425
const spinner = ora().start();
2526
options.spinner = spinner;
2627
options.templateHelper = new TemplateHelper();
2728

29+
if(options.configFile !== WIZARD_CONFIG_FILE) {
30+
options.configFile = WIZARD_CONFIG_FILE;
31+
}
32+
2833
loadAndApplyConfigFile(options.configFile, options);
2934

3035
if (options.aspectModelTFilesString) {

0 commit comments

Comments
 (0)