Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

do not install devDependencies of dependencies for argument-less npm install #4660

@redchair123

Description

@redchair123

When running npm install with no arguments, currently all devDependencies of dependencies are installed. It's not obvious if that is the right approach.

From the docs:

If someone is planning on downloading and using your module in their program, then they probably don't want or need to download and build the external test or documentation framework that you use.

When you are developing your module, it's not clear why you would need the external test or documentation framework that your dependencies use. In fact, I'd argue that you are creating an additional point of failure (what happens if there is an issue with someone else's module that is only apparent if you don't install devDependencies of the module?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions