mirror of https://github.com/embarklabs/embark.git
use utils extractZip instead of lib directly
This commit is contained in:
parent
1600150c2b
commit
2b783ffd03
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue