mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-12 23:26:39 +00:00
use utils extractZip instead of lib directly
This commit is contained in:
parent
440baeb323
commit
a4b95d13d5
@ -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…
x
Reference in New Issue
Block a user