At the moment - the changelog rule runs only if there are changes in BOTH package.json AND in chagelong.md, which is kinda weird, because it should warn if there are no changelog updates for the bumped version, no?
As far as I see - the changelog rule should run once there is a version change in the package.json, and if so - check for changes in the changelog.md
Note : diffForFile returns false if the file provided does not exist, so the changelog diffs validation is safe.
Why
At the moment - the changelog rule runs only if there are changes in BOTH
package.json
AND inchagelong.md
, which is kinda weird, because it should warn if there are no changelog updates for the bumped version, no?As far as I see - the changelog rule should run once there is a version change in the
package.json
, and if so - check for changes in thechangelog.md
Note :
diffForFile
returnsfalse
if the file provided does not exist, so the changelog diffs validation is safe.