diff options
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)) { |