diff options
-rwxr-xr-x | node_modules/rimraf/bin.js | 15 | ||||
-rw-r--r-- | node_modules/rimraf/package.json | 22 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 24 insertions, 15 deletions
diff --git a/node_modules/rimraf/bin.js b/node_modules/rimraf/bin.js index 29bfa8a63..1bd5a0d16 100755 --- a/node_modules/rimraf/bin.js +++ b/node_modules/rimraf/bin.js @@ -18,7 +18,7 @@ var args = process.argv.slice(2).filter(function(arg) { if (help || args.length === 0) { // If they didn't ask for help, then this is not a "success" var log = help ? console.log : console.error - log('Usage: rimraf <path>') + log('Usage: rimraf <path> [<path> ...]') log('') log(' Deletes all files and folders at "path" recursively.') log('') @@ -26,8 +26,15 @@ if (help || args.length === 0) { log('') log(' -h, --help Display this usage info') process.exit(help ? 0 : 1) -} else { - args.forEach(function(arg) { - rimraf.sync(arg) +} else + go(0) + +function go (n) { + if (n >= args.length) + return + rimraf(args[n], function (er) { + if (er) + throw er + go(n+1) }) } diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json index fa95a40db..f51eac4d3 100644 --- a/node_modules/rimraf/package.json +++ b/node_modules/rimraf/package.json @@ -6,15 +6,15 @@ ] ], "_from": "rimraf@>=2.4.0 <2.5.0", - "_id": "rimraf@2.4.0", + "_id": "rimraf@2.4.1", "_inCache": true, "_location": "/rimraf", - "_nodeVersion": "2.0.1", + "_nodeVersion": "2.2.1", "_npmUser": { "email": "isaacs@npmjs.com", "name": "isaacs" }, - "_npmVersion": "2.10.1", + "_npmVersion": "3.0.0", "_phantomChildren": { "inflight": "1.0.4", "inherits": "2.0.1", @@ -34,10 +34,12 @@ "/fs-vacuum", "/fstream", "/node-gyp", - "/npm-registry-client" + "/npm-registry-client", + "/nyc", + "/spawn-wrap" ], - "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.0.tgz", - "_shasum": "40ba0416037d8511ecb50f6b07cf8d18e658a864", + "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.1.tgz", + "_shasum": "99ff3cc1d61d687b67489b9f97cfa9d3db3b9e48", "_shrinkwrap": null, "_spec": "rimraf@~2.4.0", "_where": "/Users/rebecca/code/npm", @@ -62,8 +64,8 @@ }, "directories": {}, "dist": { - "shasum": "40ba0416037d8511ecb50f6b07cf8d18e658a864", - "tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.0.tgz" + "shasum": "99ff3cc1d61d687b67489b9f97cfa9d3db3b9e48", + "tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.1.tgz" }, "files": [ "LICENSE", @@ -71,7 +73,7 @@ "bin.js", "rimraf.js" ], - "gitHead": "2128f0b9ade05a81394dd21a383fa309dd9eca94", + "gitHead": "9b97ac62e1b459d84dbe18f20757bfe4374e65ab", "homepage": "https://github.com/isaacs/rimraf#readme", "license": "ISC", "main": "rimraf.js", @@ -90,5 +92,5 @@ "scripts": { "test": "tap test/*.js" }, - "version": "2.4.0" + "version": "2.4.1" } diff --git a/package.json b/package.json index fad78ad0b..adac83f0d 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "read-package-tree": "~4.1.0", "realize-package-specifier": "~3.0.1", "retry": "~0.6.1", - "rimraf": "~2.4.0", + "rimraf": "~2.4.1", "semver": "~4.3.6", "sha": "~1.3.0", "slide": "~1.1.6", |