From 0834a8af01989a0f441de7f5b6cba283bb0ce9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Tue, 13 Feb 2024 14:53:15 +0100 Subject: [PATCH] #1217: moving jsdoc2md into lint-staged to speed up commits --- .husky/pre-commit | 4 ++-- package.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 8ff502612..11e9a358a 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -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 diff --git a/package.json b/package.json index 6af2e9d6b..63a120f67 100644 --- a/package.json +++ b/package.json @@ -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"