Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes to improve the handling of pre-commit hooks and to clean up the
package.json
scripts. The most important changes involve modifying the pre-commit hook setup and command management in thehusky
plugin, and cleaning up the pre-commit hook script.Improvements to pre-commit hook handling:
.husky/pre-commit
: Removed the initialization lines and simplified the script to only include the necessary commands. ([.husky/pre-commitL1-L3](https://github.com/hongaar/moker/pull/367/files#diff-d2bc4bbf14eadc292d84e0ef5f7a93115c23557f533809fc80b896934291529dL1-L3)
)packages/plugins/src/husky/husky.ts
: Updated theaddPreCommitHookCommand
function to usesetPreCommitHookCommands
for managing multiple commands. ([packages/plugins/src/husky/husky.tsL124-R126](https://github.com/hongaar/moker/pull/367/files#diff-f6408bd0d6b3d60417475096443d24610f6fb92a44efd7365a1748e44119e726L124-R126)
)packages/plugins/src/husky/husky.ts
: Modified theremovePreCommitHookCommand
function to remove the pre-commit hook file when no commands are left. ([packages/plugins/src/husky/husky.tsL142-R143](https://github.com/hongaar/moker/pull/367/files#diff-f6408bd0d6b3d60417475096443d24610f6fb92a44efd7365a1748e44119e726L142-R143)
)Cleanup in
package.json
scripts:package.json
: Removed and re-added thebuild:watch
script to maintain consistency in script formatting. ([package.jsonL14-R15](https://github.com/hongaar/moker/pull/367/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L14-R15)
)