Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit bcee12a

Browse files
authored
Disable updated hook. (#3534)
1 parent 601300c commit bcee12a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: .huskyrc

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"//1": "Use git commit --no-verify to bypass the pre-commit hook",
33
"//2": "Use git push --no-verify to bypass the pre-push hook",
44
"hooks": {
5-
"pre-commit": "npm run precommit",
65
"pre-push": "npm run lint"
76
}
87
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"lint:scss": "sass-lint -v -q",
2424
"lint": "npm-run-all lint:md lint:scss lint:js",
2525
"percy": "PERCY=true npm-run-all build --parallel --race start snapshots",
26-
"precommit": "node ./tools/update-updated/index.js",
26+
"updated": "node ./tools/update-updated/index.js",
2727
"rollup": "node build.js",
2828
"rollup-sw": "node build-sw.js",
2929
"sass": "node ./compile-css.js",

Diff for: tools/update-updated/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
/**
22
* @fileoverview Task for updating `updated` YAML field.
3+
* Run this command while you have dirty files and it will update their
4+
* `updated` YAML field.
5+
*
6+
* Example: npm run updated && git commit -am 'Updated some blog posts'
37
*
48
* @author Matt Gaunt & Rob Dodson 💕
59
*/

0 commit comments

Comments
 (0)