diff --git a/publish-npm.mjs b/publish-npm.mjs index d7c9396a..8816a9c7 100644 --- a/publish-npm.mjs +++ b/publish-npm.mjs @@ -122,6 +122,10 @@ async function diff(oldPath, newPath) { / {2}"version": "(.+)",\n/gi, '' ); + if (key === 'package.json') { + oldFile.contents = oldFile.contents.trim() + '\n'; + newFile.contents = newFile.contents.trim() + '\n'; + } // Files are straight up equal. if (oldFile.contents === newFile.contents) return [key, null];