fixed the build :P removed .docx extension if one is already present

This commit is contained in:
Dolan Miu
2017-03-12 21:43:52 +00:00
parent 353401d148
commit d9e533156f

View File

@ -13,6 +13,7 @@ export class LocalPacker extends Packer {
} }
public pack(path: string): void { public pack(path: string): void {
path = path.replace(/.docx$/, "");
this.stream = fs.createWriteStream(`${path}.docx`); this.stream = fs.createWriteStream(`${path}.docx`);
super.pack(this.stream); super.pack(this.stream);
} }