Closed mcfedr closed 3 years ago
@Divlo would be great to stick this in the "upcoming" 11 release as well.
Oh weird, I looked at https://www.npmjs.com/package/husky - > under usage
wait - in the npm section - it talks about prepare - https://typicode.github.io/husky/#/?id=install - and also see the comments about prepare in npm doc- https://docs.npmjs.com/cli/v7/using-npm/scripts#prepare-and-prepublish
Really we if to start changing stuff, I'd remove the dist folder from git and use prepare with tsc
wait - in the npm section - it talks about prepare - typicode.github.io/husky/#/?id=install - and also see the comments about prepare in npm doc- docs.npmjs.com/cli/v7/using-npm/scripts#prepare-and-prepublish
Really we if to start changing stuff, I'd remove the dist folder from git and use prepare with tsc
I guess it's fine like that, it does the job. :+1:
Oh weird, I looked at npmjs.com/package/husky - > under usage
Yes, that's how to use husky
for projects, not for npm packages.
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update [ ] Bug fix [ ] New feature [X] Other, please explain:
What changes did you make? (Give an overview)
Move the
husky install
command toprepare
- this is the recommended place to put it with newer husky docs. This means it wont be run when the package is installed, andpinst
is no longer neededWhich issue (if any) does this pull request address?
Is there anything you'd like reviewers to focus on?