Skip to content

Do not change order of fields in manifest when updating it #1503

@slavafomin

Description

@slavafomin

Hello!

Thank you for your hard work!

However, when Rush updates manifests (package.json files) it also changes the order of fields in them.

In our project we have a specific order of fields in all manifests and we enforce it using our special linting and auto-formatting tools, but Rush keeps re-formatting our manifests, which introduce phantom changes to our Git stage.

For example, we have peerDependencies before dependencies, but Rush puts them in reverse order.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: easyProbably a quick fix. Want to contribute? :-)enhancementThe issue is asking for a new feature or design changehelp wantedIf you're looking to contribute, this issue is a good place to start!

    Type

    No type

    Projects

    Status

    Low priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions