Merge pull request #78 from tschaub/rimraf

Use rimraf for cleaning
This commit is contained in:
Tim Schaub 2016-04-24 15:58:53 -06:00
commit 086bd22163
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ var path = require('path');
var fs = require('fs'); var fs = require('fs');
var Q = require('q'); var Q = require('q');
var wrench = require('wrench'); var rimraf = require('rimraf');
var globby = require('globby'); var globby = require('globby');
var git = require('./git'); var git = require('./git');
@ -241,5 +241,5 @@ exports.publish = function publish(basePath, config, callback) {
* Clean the cache directory. * Clean the cache directory.
*/ */
exports.clean = function clean() { exports.clean = function clean() {
wrench.rmdirSyncRecursive(getCacheDir(), true); rimraf.sync(getCacheDir());
}; };

View file

@ -32,7 +32,7 @@
"graceful-fs": "4.1.2", "graceful-fs": "4.1.2",
"q": "1.4.1", "q": "1.4.1",
"q-io": "1.13.2", "q-io": "1.13.2",
"wrench": "1.5.8" "rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"chai": "^3.4.1", "chai": "^3.4.1",