download target file instead of tarball

This commit is contained in:
Iuri Matias 2017-10-06 16:17:13 -04:00
parent a78d8b00bf
commit e5aab5e2ea

View File

@ -59,7 +59,7 @@ class Npm {
fs.mkdirpSync(packageDirectory);
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(
tar.x({
strip: 1,