Skip to content

fix: Use husky set to add pre-commit command#108

Open
hkhere wants to merge 1 commit into
arco-design:mainfrom
hkhere:fix_prepare_cmd
Open

fix: Use husky set to add pre-commit command#108
hkhere wants to merge 1 commit into
arco-design:mainfrom
hkhere:fix_prepare_cmd

Conversation

@hkhere

@hkhere hkhere commented Jun 19, 2023

Copy link
Copy Markdown
Contributor

Types of changes

  • New feature
  • Bug fix
  • Documentation change
  • Coding style change
  • Refactoring
  • Performance improvement
  • Test cases
  • Continuous integration
  • Typescript definition change
  • Breaking change

Background and context

every time the npm script command prepare( "prepare": "husky install && husky add .husky/pre-commit 'npm run pre-commit'") is run, it will cause husky to add anothernpm run pre-commit item to the .husky/pre-commit script, which is not what we want.

Solution

How is the change tested?

change husky add to husky set

Changelog

Changelog(CN) Changelog(EN) Related issues

Checklist:

  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to master branch)

Other information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant