Skip to content

Commit d804228

Browse files
doochiksindresorhus
authored andcommitted
Fix compatibility with latest dir-glob release (#99)
This bug fixes problem with latest [email protected] Related to kevva/dir-glob#9
1 parent 7f9f31b commit d804228

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ const generateGlobTasks = (patterns, taskOptions) => {
4747
};
4848

4949
const globDirs = (task, fn) => {
50-
let options = {cwd: task.options.cwd};
50+
let options = {};
51+
if (task.options.cwd) {
52+
options.cwd = task.options.cwd;
53+
}
5154

5255
if (Array.isArray(task.options.expandDirectories)) {
5356
options = Object.assign(options, {files: task.options.expandDirectories});

0 commit comments

Comments
 (0)