Skip to content

Commit

Permalink
bump to 0.6.2 to fix #64, create tmp files in cacheDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
swarajban committed Apr 28, 2016
1 parent 27a9427 commit 49222bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cacheDependencyManagers/cacheDependencyManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 49222bc

Please sign in to comment.