Skip to content

Commit db9f96d

Browse files
authored
Update check build assets (#136)
We need to check for the `git diff` because we want those changes to be stashed. After some local testing, I think this is the _final_ version 😄
1 parent 2fb7fc5 commit db9f96d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
exclude: "^dist/.*$"
2323

2424
- repo: .
25-
rev: 8009448ebb4fb1e133674921404bf6c53cc3a96a
25+
rev: cc33b64
2626
hooks:
2727
- id: check-build-assets
2828
exclude: "^dist/.*$"

check-build-assets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
npm run build
44

5-
if [[ `git status dist/ --porcelain` ]]
5+
if [[ `git diff dist/` ]]
66
then
77
echo "ERROR: assets are out of date."
88
echo "Run 'git add dist/*' to stash the changes before commiting."

0 commit comments

Comments
 (0)