CRA and NPM lifecycle scripts... #12361
Unanswered
damienbutt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a custom CRA template that I have been developing and I am trying to use the
prepare
NPM lifecycle script to automatically install some git hooks during the bootstrap. I have theprepare
script defined in mytemplate.json
.Using
npx create-react-app
, theprepare
script is not being run. However, usingyarn create react-app
, theprepare
script is being run.Essentially, it is working how I expect using
yarn create
, but not usingnpx
.Could I be doing some wrong, or is this perhaps a bug with CRA that needs reporting?
Thanks,
D
Beta Was this translation helpful? Give feedback.
All reactions