diff --git a/lib/cmds/template_generator.js b/lib/cmds/template_generator.js index 5b78e741..354ee87c 100644 --- a/lib/cmds/template_generator.js +++ b/lib/cmds/template_generator.js @@ -15,9 +15,8 @@ class TemplateGenerator { fs.mkdirpSync(utils.dirname(tmpFilePath)); utils.downloadFile(url, tmpFilePath, () => { let fspath = utils.joinPath(destinationFolder, name); - const decompress = require('decompress'); - decompress(tmpFilePath, fspath, { + utils.extractZip(tmpFilePath, fspath, { map: file => { let fixed_path = file.path.split('/'); fixed_path.shift(); // remove first directory