Skip to content

Recommend to install with --save-dev when types are not part of the external API #1211

@psqli

Description

@psqli

The current generated README shows the install example with --save option:

lines.push(`> \`npm install --save ${typing.name}\``);

Wouldn't it be valuable to instruct users whether to choose --save or --save-dev for types?

For example:

If the types are consumed only within your package, install it with --save-dev option:

npm install --save-dev ...

If your package directly or indirectly exports the types, use the --save option instead of --save-dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions