diff options
author | 2024-05-24 08:27:02 +0200 | |
---|---|---|
committer | 2024-05-24 13:12:15 +0530 | |
commit | 2ae120703430293783b0752bd91e4114caac2a84 (patch) | |
tree | acc239ac1aebf4b8c669fe199313c9fa180780b6 /scripts | |
parent | Handle case correctly where the 'icon.svg' file isn't present (diff) | |
download | ferdium-recipes-2ae120703430293783b0752bd91e4114caac2a84.tar.gz ferdium-recipes-2ae120703430293783b0752bd91e4114caac2a84.tar.zst ferdium-recipes-2ae120703430293783b0752bd91e4114caac2a84.zip |
Normalize path
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/package.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/package.js b/scripts/package.js index 0cd36fe..b5491d8 100644 --- a/scripts/package.js +++ b/scripts/package.js | |||
@@ -256,7 +256,9 @@ const compress = (src, dest) => | |||
256 | result.insertions !== 0 || | 256 | result.insertions !== 0 || |
257 | result.deletions !== 0) | 257 | result.deletions !== 0) |
258 | ) { | 258 | ) { |
259 | const pkgJsonRelative = path.relative(repoRoot, packageJson); | 259 | const pkgJsonRelative = path.normalize( |
260 | path.relative(repoRoot, packageJson), | ||
261 | ); | ||
260 | if (result.files.some(({ file }) => file === pkgJsonRelative)) { | 262 | if (result.files.some(({ file }) => file === pkgJsonRelative)) { |
261 | git.diff(pkgJsonRelative, (_diffErr, diffResult) => { | 263 | git.diff(pkgJsonRelative, (_diffErr, diffResult) => { |
262 | if (diffResult && !pkgVersionChangedMatcher.test(diffResult)) { | 264 | if (diffResult && !pkgVersionChangedMatcher.test(diffResult)) { |