Skip to content

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

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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