Skip to content

Commit

Permalink
fix: Use path.posix for normalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
scagood committed Sep 27, 2023
1 parent 0c34b8f commit 2da813e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/get-npmignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function parseWhiteList(files) {

for (const file of files) {
if (typeof file === "string" && file) {
const body = path
const body = path.posix
.normalize(file.replace(/^!/u, ""))
.replace(/\/+$/u, "")

Expand Down

0 comments on commit 2da813e

Please sign in to comment.