diff --git a/lib/utils/apply-action-sync.js b/lib/utils/apply-action-sync.js index dc6411c..b91b3bc 100644 --- a/lib/utils/apply-action-sync.js +++ b/lib/utils/apply-action-sync.js @@ -29,7 +29,7 @@ const ignore = require('ignore') * @private */ module.exports = function applyActionSync (pattern, options, action) { - const ig = ignore().add(options.ignore ?? []) + const ig = ignore({ allowRelativePaths: true }).add(options.ignore ?? []) ig.add(options.ignore ?? []) const globOptions = { nodir: !options.includeEmptyDirs, diff --git a/lib/utils/apply-action.js b/lib/utils/apply-action.js index c8a7043..08eea68 100644 --- a/lib/utils/apply-action.js +++ b/lib/utils/apply-action.js @@ -30,7 +30,7 @@ const pMapPromise = import('p-map') * @private */ module.exports = async function applyAction (pattern, options, action) { - const ig = ignore().add(options.ignore ?? []) + const ig = ignore({ allowRelativePaths: true }).add(options.ignore ?? []) ig.add(options.ignore ?? []) const globOptions = { nodir: !options.includeEmptyDirs,