update dependencies and fix archive.bulk deprecation
This commit is contained in:
@ -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"
|
||||
},
|
||||
|
@ -51,13 +51,15 @@ export abstract class Packer {
|
||||
pack(output: any): void {
|
||||
this.archive.pipe(output);
|
||||
console.log(appRoot.path + "/template");
|
||||
this.archive.bulk([
|
||||
{
|
||||
this.archive.glob("**", {
|
||||
expand: true,
|
||||
cwd: appRoot.path + "/template",
|
||||
src: ["**", "**/.rels"]
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
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");
|
||||
|
Reference in New Issue
Block a user