Skip to content

Commit

Permalink
Merge pull request #124 from bcomnes/fix-relative-copy-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes authored Oct 4, 2024
2 parents ab10190 + 3bd6c90 commit e35a68a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/apply-action-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/apply-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e35a68a

Please sign in to comment.