Skip to content

Commit

Permalink
refactor: further updates
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 12, 2024
1 parent 7ce9b96 commit 2643735
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/generators/TypescriptGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export class TypescriptGenerator implements GeneratorInterface {
this.generator.options.description = this.generator.options.skipPrompts
? this.generator.options.description
: answers.description;
// this.generator.options.git = this.generator.options.skipPrompts
// ? this.generator.options.git
// : answers.git;
}

private getFilePaths(): Array<PathMap> {
Expand Down
4 changes: 3 additions & 1 deletion src/questions/Git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export class Git extends BaseQuestion {
name: "git",
message: "Initialize a git repository?",
default: this.getDefault(),
when: !this.generator.options.skipPrompts,
when:
!this.generator.options.git &&
!this.generator.options.skipPrompts,
};
}
}

0 comments on commit 2643735

Please sign in to comment.