Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RRFC] peerDevDependencies #553

Open
rbalet opened this issue Mar 14, 2022 · 3 comments
Open

[RRFC] peerDevDependencies #553

rbalet opened this issue Mar 14, 2022 · 3 comments

Comments

@rbalet
Copy link

rbalet commented Mar 14, 2022

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.

@rbalet rbalet changed the title [RRFC] <peerDevDependencies> [RRFC] peerDevDependencies Mar 14, 2022
@ljharb
Copy link
Contributor

ljharb commented Mar 14, 2022

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.

@ljharb
Copy link
Contributor

ljharb commented Mar 14, 2022

tbh this seems more like something that TS could solve by fixing DT so it sets up peerDep relationships properly.

@rbalet
Copy link
Author

rbalet commented Mar 15, 2022

@ljharb I'm not sure I understand what you just said.

But the open layer library is part developed in javascript & they are somehow generating a .d.ts file out of it.

But not sur about what I'm saying, I'm not experienced enough for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants