Skip to content

Commit

Permalink
fix: user dirname for templates
Browse files Browse the repository at this point in the history
  • Loading branch information
amphro committed Mar 3, 2020
1 parent cae155a commit 51b9b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ditamap/ditamap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export abstract class Ditamap {
private source: string;

constructor(private filename: string, protected data: JsonMap) {
this.source = join(Ditamap.templatesDir, this.getTemplateFileName());
this.source = join(__dirname, Ditamap.templatesDir, this.getTemplateFileName());
this.destination = join(Ditamap.outputDir, filename);
}

Expand Down

0 comments on commit 51b9b0b

Please sign in to comment.