Skip to content

Commit

Permalink
Normalize path
Browse files Browse the repository at this point in the history
  • Loading branch information
Shampra authored and vraravam committed May 24, 2024
1 parent dd668a6 commit 2ae1207
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ const compress = (src, dest) =>
result.insertions !== 0 ||
result.deletions !== 0)
) {
const pkgJsonRelative = path.relative(repoRoot, packageJson);
const pkgJsonRelative = path.normalize(
path.relative(repoRoot, packageJson),
);
if (result.files.some(({ file }) => file === pkgJsonRelative)) {
git.diff(pkgJsonRelative, (_diffErr, diffResult) => {
if (diffResult && !pkgVersionChangedMatcher.test(diffResult)) {
Expand Down

0 comments on commit 2ae1207

Please sign in to comment.