diff --git a/ts/export/packer/packer.ts b/ts/export/packer/packer.ts index c5229af86e..a2675b57d6 100644 --- a/ts/export/packer/packer.ts +++ b/ts/export/packer/packer.ts @@ -6,6 +6,10 @@ export class Packer { constructor() { this.archive = archiver.create("zip", {}); + + this.archive.on('error', (err) => { + throw err; + }); } pack(output: fs.WriteStream): void { @@ -18,5 +22,9 @@ export class Packer { src: ['**', '**/.rels'] } ]); + + //this.archive.directory(__dirname + "/template", "/"); + + this.archive.finalize(); } } \ No newline at end of file