Add supports-color as optional peerDependency#709
Add supports-color as optional peerDependency#709jgierer12 wants to merge 1 commit intodebug-js:masterfrom jgierer12:supports-color-optional-peer-dep
supports-color as optional peerDependency#709Conversation
This is the proper way to declare this type of dependency. Note that if `peerDependenciesMeta` is not supported by the package manager and `supports-color` is not installed, a warning will be displayed.
|
Quick update that I'm currently not using this feature myself until node bundles |
|
Note that the situation changed since the last comment. The Additionally, listing CC @Qix- |
|
Published as |
This is the proper way to declare this type of dependency.
Note that if
peerDependenciesMetais not supported by the packagemanager (yarn < 1.13 and npm) and
supports-coloris not installed, a warning will bedisplayed.
See
peerDependencies,peerDependenciesMeta.Without this, Yarn PnP to throws an error when
debugis in the dependency tree, since PnP is very strict aboutrequireing packages that aren't declared as dependencies.