Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

automatically installing the @types package when adding a dependency #174

Closed Answered by MylesBorins
aweary asked this question in CLI
Discussion options

You must be logged in to vote

This seems like it could be a useful feature, although I do have some slight concerns with "automatically" installing a 3rd party type definition for a module, it seems like it could create an additional attack surface for supply chain attacks.

I could see this being an option that could be included at install time, I believe there are also tools that already exist in the ecosystem to do this behavior.

This feels like something that could be explore via the CLI RFC process, perhaps starting with an issue outlining what this new feature could look like.

https://github.com/npm/rfcs

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@merceyz
Comment options

Comment options

You must be logged in to vote
3 replies
@dwelle
Comment options

@karlhorky
Comment options

@karlhorky
Comment options

Answer selected by MylesBorins
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
CLI
Labels
None yet
7 participants