Skip to content

rush add -p not inserting in alphabetical order #2115

@matthiasg

Description

@matthiasg

rush: 5.32.0
pnpm: 5.5.1

When running rush add -p package the package.json is extended, but the dependency is not inserted in alpahabetical order.

This causes issues down the line with other steps in the toolchain where the package.json is reordered which causes unncessary commits and unclean working directories.

I have seen other issues talking about keeping the general order of properties, but this seems not to be mentioned anywhere. If I overlooked it, please close this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIf you're looking to contribute, this issue is a good place to start!

    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