Comparing version 0.1.1 to 0.1.2
'use strict'; | ||
var path = require('path'); | ||
var globby = require('globby'); | ||
@@ -38,2 +39,6 @@ var eachAsync = require('each-async'); | ||
if (opts.cwd) { | ||
el = path.resolve(opts.cwd, el); | ||
} | ||
rimraf(el, next); | ||
@@ -55,4 +60,8 @@ }, cb); | ||
if (opts.cwd) { | ||
el = path.resolve(opts.cwd, el); | ||
} | ||
rimraf.sync(el); | ||
}); | ||
}; |
{ | ||
"name": "del", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Delete files/folders using globs", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -46,3 +46,3 @@ # del [![Build Status](https://travis-ci.org/sindresorhus/del.svg?branch=master)](https://travis-ci.org/sindresorhus/del) | ||
See the node-glob [options](https://github.com/isaacs/node-glob#properties). | ||
See the node-glob [options](https://github.com/isaacs/node-glob#options). | ||
@@ -49,0 +49,0 @@ #### options.force |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3593
52