Skip to content

Commit f338613

Browse files
agilgur5jaredpalmer
authored andcommitted
(docs): run doctoc on pre-commit (#399)
- and install it as a devDep - doctoc is used in the README ToC and listed in comment, but wasn't a devDep or used in any internal scripts
1 parent 97fd059 commit f338613

2 files changed

Lines changed: 361 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,15 @@
116116
"@types/react": "^16.9.11",
117117
"@types/rollup-plugin-json": "^3.0.2",
118118
"@types/rollup-plugin-sourcemaps": "^0.4.2",
119+
"doctoc": "^1.4.0",
119120
"husky": "^3.0.9",
120121
"pretty-quick": "^2.0.0",
121122
"ps-tree": "^1.2.0",
122123
"react": "^16.8.6"
123124
},
124125
"husky": {
125126
"hooks": {
126-
"pre-commit": "pretty-quick --staged --pattern '!test/tests/lint/**' && yarn lint"
127+
"pre-commit": "pretty-quick --staged --pattern '!test/tests/lint/**' && yarn lint && doctoc README.md"
127128
}
128129
},
129130
"prettier": {

0 commit comments

Comments
 (0)