From 4973d1b7a199ea4b911d8ab80878e82b7ec3fb73 Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Wed, 4 Dec 2019 20:56:39 +0100 Subject: [PATCH] Bump .version in mustache.js in git hook when version has changed 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. --- hooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 07fedb749..58b24e2eb 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -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', /([\d\.]*)<\/version>/), ]) bumper.start