mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
fix extractZip
This commit is contained in:
parent
3f16806f37
commit
29c93da4cc
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -183,10 +183,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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user