fix extractZip
This commit is contained in:
parent
3f16806f37
commit
29c93da4cc
|
@ -23,7 +23,7 @@ class TemplateGenerator {
|
|||
file.path = utils.joinPath(...fixed_path);
|
||||
return file;
|
||||
}
|
||||
}).then(() => {
|
||||
}, () => {
|
||||
self.installTemplate(fspath, name, true);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -183,10 +183,10 @@ function extractTar(filename, packageDirectory, cb) {
|
|||
);
|
||||
}
|
||||
|
||||
function extractZip(filename, packageDirectory, cb) {
|
||||
function extractZip(filename, packageDirectory, opts, cb) {
|
||||
const decompress = require('decompress');
|
||||
|
||||
decompress(filename, packageDirectory).then((_files) => {
|
||||
decompress(filename, packageDirectory, opts).then((_files) => {
|
||||
cb();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue