Skip to content

Commit

Permalink
setup: format version.json with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenKube committed Mar 26, 2020
1 parent 148f21b commit 84863ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "version": "1.3.2" }
{ "version": "1.3.3" }
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
"husky": {
"hooks": {
"pre-commit": "./update_version.sh && prettier --write lib/version.json && npm run test:unit-staged && lint-staged"
"pre-commit": "./update_version.sh && npm run test:unit-staged && lint-staged"
}
},
"lint-staged": {
Expand Down
3 changes: 2 additions & 1 deletion update_version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh

grep '"version":' package.json | sed -e 's/\(.*\),/{\1}/' > lib/version.json
git add lib/version.json
prettier --write lib/version.json
git add lib/version.json

0 comments on commit 84863ac

Please sign in to comment.