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

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