Skip to content

Commit

Permalink
Bump .version in mustache.js in git hook when version has changed
Browse files Browse the repository at this point in the history
This changes the pre-commit hook that we've used for years to keep the
version value found in `package.json` in sync with the one in
`mustache.js`, to change `mustache.mjs` instead since that's where the
source code lives now.
  • Loading branch information
phillipj committed Dec 4, 2019
1 parent ba3fcff commit 4973d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Bumper
end

bumper = Bumper.new([
Source.new('mustache.js', /mustache.version = '([\d\.]*)'/),
Source.new('mustache.mjs', /version: '([\d\.]*)'/),
Source.new('mustache.js.nuspec', /<version>([\d\.]*)<\/version>/),
])
bumper.start

0 comments on commit 4973d1b

Please sign in to comment.