diff --git a/package.json b/package.json index 4752004953..6936f93d61 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ "doc" ], "dependencies": { - "app-root-path": "^1.0.0", - "archiver": "^0.21.0", + "app-root-path": "^2.0.1", + "archiver": "^1.3.0", "lodash": "^4.6.1", "xml": "^1.0.1" }, diff --git a/ts/export/packer/packer.ts b/ts/export/packer/packer.ts index c2f39b7acd..8d19918ec9 100644 --- a/ts/export/packer/packer.ts +++ b/ts/export/packer/packer.ts @@ -51,13 +51,15 @@ export abstract class Packer { pack(output: any): void { this.archive.pipe(output); console.log(appRoot.path + "/template"); - this.archive.bulk([ - { - expand: true, - cwd: appRoot.path + "/template", - src: ["**", "**/.rels"] - } - ]); + this.archive.glob("**", { + expand: true, + cwd: appRoot.path + "/template", + }); + + this.archive.glob("**/.rels", { + expand: true, + cwd: appRoot.path + "/template", + }); // this.archive.file(appRoot.path + "/template/[Content_Types].xml", { name: "[Content_Types].xml" }); // console.log(__dirname + "/packer.js");