Skip to content

Commit e35a68a

Browse files
authored
Merge pull request #124 from bcomnes/fix-relative-copy-errors
2 parents ab10190 + 3bd6c90 commit e35a68a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/utils/apply-action-sync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ignore = require('ignore')
2929
* @private
3030
*/
3131
module.exports = function applyActionSync (pattern, options, action) {
32-
const ig = ignore().add(options.ignore ?? [])
32+
const ig = ignore({ allowRelativePaths: true }).add(options.ignore ?? [])
3333
ig.add(options.ignore ?? [])
3434
const globOptions = {
3535
nodir: !options.includeEmptyDirs,

lib/utils/apply-action.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const pMapPromise = import('p-map')
3030
* @private
3131
*/
3232
module.exports = async function applyAction (pattern, options, action) {
33-
const ig = ignore().add(options.ignore ?? [])
33+
const ig = ignore({ allowRelativePaths: true }).add(options.ignore ?? [])
3434
ig.add(options.ignore ?? [])
3535
const globOptions = {
3636
nodir: !options.includeEmptyDirs,

0 commit comments

Comments
 (0)