Skip to content

Another bug wrt sort pre/post scripts with colon together #332

@rfalke-rtl

Description

@rfalke-rtl

Similar to #307

Sorted input with extra blank lines for clarification:

  "scripts": {
    "test": "echo",
    "test:coverage": "echo",

    "pretest:es-check": "echo",
    "test:es-check": "echo",
    "posttest:es-check": "echo",

    "test:types": "echo"
  },

Output with npx sort-package-json@2.14.0:

  "scripts": {
    "pretest:es-check": "echo",
    "test": "echo",
    "test:coverage": "echo",
    "test:es-check": "echo",
    "test:types": "echo",
    "posttest:es-check": "echo"
  }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions