broccoli-caching-writer
Advanced tools
Comparing version 0.5.1 to 0.5.2
10
index.js
@@ -17,3 +17,3 @@ var fs = require('fs'); | ||
this._shouldBeIgnoredCache = Object.create(null); | ||
this.destDir = path.resolve(path.join('tmp', 'caching-writer-dest-dir_' + generateRandomString(6) + '.tmp')); | ||
this._destDir = path.resolve(path.join('tmp', 'caching-writer-dest-dir_' + generateRandomString(6) + '.tmp')); | ||
@@ -101,9 +101,9 @@ options = options || {}; | ||
.then(function() { | ||
return rimraf(self.destDir); | ||
return rimraf(self._destDir); | ||
}) | ||
.then(function() { | ||
symlinkOrCopy.sync(self.getCacheDir(), self.destDir); | ||
symlinkOrCopy.sync(self.getCacheDir(), self._destDir); | ||
}) | ||
.then(function() { | ||
return self.destDir; | ||
return self._destDir; | ||
}); | ||
@@ -116,3 +116,3 @@ }; | ||
// sadly we must use sync removal for now | ||
rimraf.sync(this.destDir); | ||
rimraf.sync(this._destDir); | ||
}; | ||
@@ -119,0 +119,0 @@ |
{ | ||
"name": "broccoli-caching-writer", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Broccoli plugin that allows simple caching (while still allowing N:N) based on the input tree hash.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
26731