From 9f61ca7abeefa05e91c9ca30a6b3998fb65c1704 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sun, 12 Mar 2017 21:42:45 +0000 Subject: [PATCH] fixed the build :P removed .docx extension if one is already present --- ts/export/packer/local.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/export/packer/local.ts b/ts/export/packer/local.ts index 319f2e16f1..d1a5980662 100644 --- a/ts/export/packer/local.ts +++ b/ts/export/packer/local.ts @@ -13,6 +13,7 @@ export class LocalPacker extends Packer { } public pack(path: string): void { + path = path.replace(/.docx$/, ""); this.stream = fs.createWriteStream(`${path}.docx`); super.pack(this.stream); }