hypermod-community
hypermod-community copied to clipboard
Add ability to pass path to codeshift.config.js
Hello again! Thanks for great tool btw 😃
I'm building a tool which is actually a wrapper around yours. It is a standalone package which contain all codemods and it just runs @codeshift/cli
internally.
My package, after installation is located in node_modules
and have following structure:
The problem is that after I install my package and run it, @codeshift/cli is not able to find codeshift.config.js
, because it is trying to find it in project root, but config is actually located in node_modules/@my-tool/codeshift.config.js
.
I think I can solve this problem if I can pass --config
option (or something like this) and specify a path to config (like node_modules/@my-tool/codeshift.config.js
).
Maybe there is another solution, can you help me?