Comparing version 12.0.1 to 12.0.2
18
index.js
@@ -99,5 +99,17 @@ import fs from 'node:fs'; | ||
const globToTask = task => glob => { | ||
const globToTask = task => async glob => { | ||
const {options} = task; | ||
if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) { | ||
options.ignore = await dirGlob(options.ignore); | ||
} | ||
return { | ||
pattern: glob, | ||
options, | ||
}; | ||
}; | ||
const globToTaskSync = task => glob => { | ||
const {options} = task; | ||
if (options.ignore && Array.isArray(options.ignore) && options.expandDirectories) { | ||
options.ignore = dirGlob.sync(options.ignore); | ||
@@ -139,3 +151,3 @@ } | ||
for (const task of globTasks) { | ||
const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); | ||
const newTask = getPattern(task, dirGlob.sync).map(globToTaskSync(task)); | ||
tasks.push(...newTask); | ||
@@ -159,3 +171,3 @@ } | ||
for (const task of globTasks) { | ||
const newTask = getPattern(task, dirGlob.sync).map(globToTask(task)); | ||
const newTask = getPattern(task, dirGlob.sync).map(globToTaskSync(task)); | ||
tasks.push(...newTask); | ||
@@ -162,0 +174,0 @@ } |
{ | ||
"name": "globby", | ||
"version": "12.0.1", | ||
"version": "12.0.2", | ||
"description": "User-friendly glob matching", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
21748
402