fix extractZip

This commit is contained in:
Iuri Matias 2018-07-09 16:30:27 +03:00
parent 7929abcdfd
commit e2c0297df5
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class TemplateGenerator {
file.path = utils.joinPath(...fixed_path); file.path = utils.joinPath(...fixed_path);
return file; return file;
} }
}).then(() => { }, () => {
self.installTemplate(fspath, name, true); self.installTemplate(fspath, name, true);
}); });
}); });

View File

@ -173,10 +173,10 @@ function extractTar(filename, packageDirectory, cb) {
); );
} }
function extractZip(filename, packageDirectory, cb) { function extractZip(filename, packageDirectory, opts, cb) {
const decompress = require('decompress'); const decompress = require('decompress');
decompress(filename, packageDirectory).then((_files) => { decompress(filename, packageDirectory, opts).then((_files) => {
cb(); cb();
}); });
} }