Skip to content

yarn check --production is checking for presence of devDependencies  #2038

Description

@martynchamberlin

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Currently running yarn check --production is not checking for only dependencies. It's also checking devDependencies. This means that if you wanted to use yarn check during a deploy, you couldn't, it would always fail. We'd love to be able to use this on deploys.

If the current behavior is a bug, please provide the steps to reproduce.
Have some dependencies and some devDependencies specified in package.json. Manually remove one of the devDependencies from the node_modules folder. Run yarn check --production, and it will fail. It should not fail, should it?

What is the expected behavior?
For yarn to only look at the dependencies when running yarn check.

Please mention your node.js, yarn and operating system version.

  • v6.1.0
  • yarn: MC/fix-yarn-probs
  • os: macOS Sierra

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