-
-
Notifications
You must be signed in to change notification settings - Fork 796
Closed
Labels
Description
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)".
mscienski and zxlin