Skip to content

Generated pnpm-lock.yaml lists all dependencies as non-dev dependencies #1516

@alexarg

Description

@alexarg

We've noticed that in the pnpm-lock.yaml file all of the packages that are listed have flag "dev: false", even when it is obvious that it is a dev dependency. Example:

  /@babel/core/7.5.5:
    dependencies:
      '@babel/code-frame': 7.5.5
      '@babel/generator': 7.5.5
      '@babel/helpers': 7.5.5
      '@babel/parser': 7.5.5
      '@babel/template': 7.4.4
      '@babel/traverse': 7.5.5
      '@babel/types': 7.5.5
      convert-source-map: 1.6.0
      debug: 4.1.1
      json5: 2.1.0
      lodash: 4.17.15
      resolve: 1.11.1
      semver: 5.7.0
      source-map: 0.5.7
    dev: false
    engines:
      node: '>=6.9.0'
    resolution:
      integrity: sha1-F7JobvDWvFj5Y93daKtml1VYLDA=

The expectation is that for packages that come from devDependencies attributes of package.json should have "dev: true"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions