From d9e533156fa40cef79d385d2a30fbc858bd08534 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Sun, 12 Mar 2017 21:43:52 +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); }