From 49222bc295b83c0035b35211161c7bcb831fb493 Mon Sep 17 00:00:00 2001 From: Swaraj Banerjee Date: Thu, 28 Apr 2016 07:48:09 -0700 Subject: [PATCH] bump to 0.6.2 to fix #64, create tmp files in cacheDirectory --- cacheDependencyManagers/cacheDependencyManager.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cacheDependencyManagers/cacheDependencyManager.js b/cacheDependencyManagers/cacheDependencyManager.js index 8a951e4..5e99ec3 100644 --- a/cacheDependencyManagers/cacheDependencyManager.js +++ b/cacheDependencyManagers/cacheDependencyManager.js @@ -101,7 +101,9 @@ CacheDependencyManager.prototype.archiveDependencies = function (cacheDirectory, // Make sure cache directory is created fs.mkdirsSync(cacheDirectory); - var tmpName = tmp.tmpNameSync(); + var tmpName = tmp.tmpNameSync({ + dir: cacheDirectory + }); tmp.setGracefulCleanup(); var dirDest = fsNode.createWriteStream(tmpName); diff --git a/package.json b/package.json index 9d25dd4..d689206 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "npm-cache", - "version": "0.6.1", + "version": "0.6.2", "description": "cache dependency manager installs to local machine", "main": "index.js", "repository": {