From e5aab5e2eaed096459ab2cc175d90c8668981872 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 6 Oct 2017 16:17:13 -0400 Subject: [PATCH] download target file instead of tarball --- lib/pipeline/npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pipeline/npm.js b/lib/pipeline/npm.js index bf8732d8..910514cf 100644 --- a/lib/pipeline/npm.js +++ b/lib/pipeline/npm.js @@ -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,