You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was configuring a new project today and I decided to consolidate all the configuration files, using a .cjs extension. While using your package I noticed I could not get the config file running as a .cjs file.
But this was easily fixed by adding one line in the src/config.ts file.
I went into the node_modules folder and edited the node_modules\jira-prepare-commit-msg\bin\config.js file with the code listed above. After that, I ran yarn patch-package jira-prepare-commit-msg. (Please note, you will have to install patch-package and postinstall -> yarn add -D patch-package postinstall)
I also added "postinstall": "patch-package" to scripts in my package.json file so the patch is applied every time somebody installs the project on their own environment.
The text was updated successfully, but these errors were encountered:
Hey,
I was configuring a new project today and I decided to consolidate all the configuration files, using a
.cjs
extension. While using your package I noticed I could not get the config file running as a.cjs
file.But this was easily fixed by adding one line in the
src/config.ts
file.Today I used patch-package to patch
[email protected]
so it's doable on my personal project.Here is the difference that solved my problem:
For context, if somebody else wants to use this as well:
This is my working
jira-prepare-commit-msg.config.cjs
file:I went into the
node_modules
folder and edited thenode_modules\jira-prepare-commit-msg\bin\config.js
file with the code listed above. After that, I ranyarn patch-package jira-prepare-commit-msg
. (Please note, you will have to installpatch-package
andpostinstall
->yarn add -D patch-package postinstall
)I also added
"postinstall": "patch-package"
toscripts
in mypackage.json
file so the patch is applied every time somebody installs the project on their own environment.The text was updated successfully, but these errors were encountered: