update dependencies and fix archive.bulk deprecation

This commit is contained in:
felipe
2017-03-07 13:49:21 +01:00
parent 9b9d748477
commit 46c870fafc
2 changed files with 11 additions and 9 deletions

View File

@ -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"
},

View File

@ -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");