mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-08 20:05:44 +00:00
download target file instead of tarball
This commit is contained in:
parent
a78d8b00bf
commit
e5aab5e2ea
@ -59,7 +59,7 @@ class Npm {
|
|||||||
fs.mkdirpSync(packageDirectory);
|
fs.mkdirpSync(packageDirectory);
|
||||||
self.logger.info("downloading " + packageName + " " + version + "....");
|
self.logger.info("downloading " + packageName + " " + version + "....");
|
||||||
|
|
||||||
download(tarball, packageDirectory + "/" + packageName + ".js", function() {
|
download(fileLocation, packageDirectory + "/" + packageName + ".js", function() {
|
||||||
o_fs.createReadStream(packageDirectory + "/" + packageName + ".js").pipe(
|
o_fs.createReadStream(packageDirectory + "/" + packageName + ".js").pipe(
|
||||||
tar.x({
|
tar.x({
|
||||||
strip: 1,
|
strip: 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user