Skip to content

Commit

Permalink
fix: Correct template dir (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed May 24, 2019
1 parent 487a74b commit b1b9910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ program
.name(binName)
.description(description)
.version(version, '-v, --version')
.option('-i, --input <file>', 'Set the input file')
.option('-o, --output <directory>', 'Set the output directory')
.option('-i, --input <file>', 'Set the input file (required)')
.option('-o, --output <directory>', 'Set the output directory (required)')
.parse(process.argv);

if (!program.input || !program.output) {
Expand Down
2 changes: 1 addition & 1 deletion src/generators/TemplateGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export abstract class TemplateGenerator {
protected abstract async getContext(): Promise<GeneratorContext>;

protected getTemplateFile(): string {
return path.resolve(__dirname, '../../src/templates', this.templateFile);
return path.resolve(__dirname, '../templates', this.templateFile);
}

private async renderTemplate(): Promise<string> {
Expand Down

0 comments on commit b1b9910

Please sign in to comment.