Skip to content

Commit ec5ca0e

Browse files
Merge pull request #137 from contentstack/CL-2148
fix: avoid duplicate env-var prompt & duplicate choice list
2 parents 13a6460 + a8e52e8 commit ec5ca0e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/adapters/base-class.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ export default class BaseClass {
519519
(await ux.inquire({
520520
type: 'checkbox',
521521
name: 'variablePreparationType',
522-
default: this.config.framework,
523522
choices: this.config.variablePreparationTypeOptions,
524523
message: 'Import variables from a stack and/or manually add custom variables to the list',
525524
}));

src/base-command.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {
6262
this.args = args as Args<T>;
6363

6464
ux.registerSearchPlugin();
65+
if (process.stdin.isTTY && typeof process.stdin.setMaxListeners === 'function') {
66+
process.stdin.setMaxListeners(20);
67+
}
6568
this.$event = new EventEmitter();
6669

6770
await this.prepareConfig();

0 commit comments

Comments
 (0)