How do I set a peer dependency optional?
I'm developing a module A. The user can, optionally, inject a Winston logger to my module, therefore winston is its peer dependency.
Whenever I install my module A in another module where I don't want to log stuff (therefore I don't include Winston) and try to tsc it, Typescript yells:
Cannot find module 'winston' or its corresponding type declarations.
How do I go about it?