[RRFC] peerDevDependencies
Opened this issue · 3 comments
Motivation ("The Why")
Some libraries are using devDependencies
that are required to be downloaded in the new project another person may create.
Use case:
I'm using the open layer library.
This library does required @types/topojson-specification
, @types/geojson
& @types/arcgis-rest-api
to be downloaded as devDependencies
in my project.
How
Current Behaviour
This could be archived by adding the dependencies into the peerDependencies
and hoping that the three shakings make his work.
Desired Behaviour
Having a new peerDevDependencies
list that do work exactly the same way as the peerDependencies
.
This would be a bit weird; peer requirements hoist up through as many levels of the graph as there are, but dev deps aren’t checked for anything transitive.
tbh this seems more like something that TS could solve by fixing DT so it sets up peerDep relationships properly.