Skip to content

Commit

Permalink
fix: Windows backslash-issue in get_ignore_rules()
Browse files Browse the repository at this point in the history
  • Loading branch information
bencergazda committed Oct 25, 2021
1 parent 2891c8e commit efb7571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dependency.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const packlist = require('npm-packlist');
const tar = require('tar');
const execSh = require('exec-sh').promise;

const { validate_path, promisified, default_ignore_rules } = require('./helpers')
const { validate_path, promisified, default_ignore_rules, definitely_posix } = require('./helpers')

/**
*
Expand Down Expand Up @@ -73,7 +73,7 @@ async function get_ignore_rules(relative_package_path) {
...local_ignore_rules,
];

return all_rules.map((pattern) => path.join(relative_package_path, pattern));
return all_rules.map((pattern) => definitely_posix(path.join(relative_package_path, pattern)));
}

/**
Expand Down

0 comments on commit efb7571

Please sign in to comment.