Hey, I'm working on a custom dependencies importer, and for files copying and prefixing I used this cool library. I don't use CLI but directly use CopyComand and found it unnecessarily limiting to have package.json as the only config possibility.
IMO, ideally, these commands shouldn't be responsible for fetching config and aware of config placement - config should be passed as constructor argument or imported from a different entity. Anyway, I didn't want to rearrange your code so I decided to suggest the simplest, full-config-passing-ready solution
Hey, I'm working on a custom dependencies importer, and for files copying and prefixing I used this cool library. I don't use CLI but directly use CopyComand and found it unnecessarily limiting to have package.json as the only config possibility. IMO, ideally, these commands shouldn't be responsible for fetching config and aware of config placement - config should be passed as constructor argument or imported from a different entity. Anyway, I didn't want to rearrange your code so I decided to suggest the simplest, full-config-passing-ready solution