Skip to content

lint / build dependencies incorrectly not marked as devDependencies #490

@Jessidhia

Description

@Jessidhia

The react-dropzone package.json includes babel-preset-env, babel-preset-stage-1, eslint-config-prettier and eslint-plugin-prettier as dependencies even though they are not used at runtime.

This results in users of published versions of the library being forced to install those packages, even though they are only needed for development. They should be devDependencies.

This may be, in turn, required by the use of a prepublish script, which happens to be run by npm on install (it's deprecated, but won't be going away for a few years yet). To work around that, it's probably better to depend on in-publish and using "prepublish": "not-in-publish || npm run prepare", "prepare": "(the current prepublish command)".

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