From a4b95d13d5c348dd420641cf6fd1e8778ad545f5 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 6 Jul 2018 17:54:52 +0300 Subject: [PATCH] use utils extractZip instead of lib directly --- lib/cmds/template_generator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/cmds/template_generator.js b/lib/cmds/template_generator.js index db2299bed..43d6b1ec8 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