Skip to content

Commit

Permalink
Merge pull request #1218 from Accenture/task/1217-contributor-only-ru…
Browse files Browse the repository at this point in the history
…n-jsdoc2md-if-js-files-were-committed

#1217: moving jsdoc2md into lint-staged to speed up commits
  • Loading branch information
JoernBerkefeld authored Feb 13, 2024
2 parents 3742a34 + 0834a8a commit da8117f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
npm run docs
git update-index --add docs/dist/documentation.md
#npm run docs
#git update-index --add docs/dist/documentation.md
npx --no lint-staged
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
"eslint --fix",
"npm run docs",
"git update-index --add docs/dist/documentation.md"
]
},
"type": "module"
Expand Down

0 comments on commit da8117f

Please sign in to comment.