Describe the bug
when running npx kirimase init the cli is unable to find a next.config.mjs file. I currently has a legacy dependency (contentlayer) in this project and because of it we are forced to use the .cjs extension instead.
To Reproduce
Steps to reproduce the behavior:
Rename next.config.mjs to next.config.cjs
Run npx kirimase init on the project root
See error
Expected behavior
I hope that the cli would be robust enough to able to check to see if any next-config is available and apply the changes to that file regardless of the extension used in the project.
Screenshots
~
Desktop (please complete the following information):
Config File
Describe the bug when running
npx kirimase init
the cli is unable to find anext.config.mjs
file. I currently has a legacy dependency (contentlayer) in this project and because of it we are forced to use the.cjs
extension instead.To Reproduce Steps to reproduce the behavior:
next.config.mjs
tonext.config.cjs
npx kirimase init
on the project rootExpected behavior I hope that the cli would be robust enough to able to check to see if any next-config is available and apply the changes to that file regardless of the extension used in the project.
Screenshots ~![image](https://github.com/nicoalbanese/kirimase/assets/1086269/2b8f3dbc-9113-40c4-9e6f-fd74e515a03f)
Desktop (please complete the following information):
Additional context n/a