Skip to content

bug(schematics): adding package to devDependencies #32630

Description

@pamartinez-signify

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

ng add @angular/material adds package @angular/material in devDependencies section of package.json

Reproduction

Steps to reproduce:

  1. Create a new angular app
  2. Run ng add @angular/material

Expected Behavior

I would expect @angular/material to be added to dependencies section only, not in devDependencies

Actual Behavior

@angular/material is being added to both sections dependencies and devDependencies

Environment

  • Angular: 21.2.0
  • CDK/Material: 21.2.0
  • Browser(s): -
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions