Skip to content

Commit

Permalink
Merge pull request #78 from tschaub/rimraf
Browse files Browse the repository at this point in the history
Use rimraf for cleaning
  • Loading branch information
tschaub committed Apr 24, 2016
2 parents f6bc5fb + e82e1b3 commit 086bd22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var path = require('path');
var fs = require('fs');

var Q = require('q');
var wrench = require('wrench');
var rimraf = require('rimraf');
var globby = require('globby');

var git = require('./git');
Expand Down Expand Up @@ -241,5 +241,5 @@ exports.publish = function publish(basePath, config, callback) {
* Clean the cache directory.
*/
exports.clean = function clean() {
wrench.rmdirSyncRecursive(getCacheDir(), true);
rimraf.sync(getCacheDir());
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"graceful-fs": "4.1.2",
"q": "1.4.1",
"q-io": "1.13.2",
"wrench": "1.5.8"
"rimraf": "^2.5.2"
},
"devDependencies": {
"chai": "^3.4.1",
Expand Down

0 comments on commit 086bd22

Please sign in to comment.