Closed sirlancelot closed 4 years ago
Totally agree with making prettier a peerDependency. Currently this causes problems in my workspace, because yarn keeps placing a version < 2.0.0 in the .bin folder, even though I have listed prettier 2.0.4 in my dependencies.
Currently this causes problems in my workspace
To be fair, it is Yarn that causes the problem, not this package.
With the release of Prettier v2.x, projects wishing to update to the latest version will download both versions of Prettier due to this module having a hard dependency on v1.x.
Since Prettier is only
require
'd whenprettify == true
andNODE_ENV != "production"
, can this dependency be switched to an optionalDependency or peerDependency? Or perhaps its version requirement relaxed to include v2.x?