Skip to content

PNPM commands with --kill-others cause concurrently to exit error #531

Open
@dr3

Description

@dr3

What

When trying to kill-others concurrently exits unhappy when the command its killing is a pnpm script

Reproduction

Create a dir with this package.json, node 20+ & pnpm 9.15.4

{
  "name": "concurrently-example",
  "scripts": {
    "one": "sleep 30 && exit 1",
    "two": "sleep 2 && exit 0",
    "this-fails": "concurrently --success=first --kill-others \"pnpm two\" \"pnpm one\"",
    "this-passes": "concurrently --success=first --kill-others \"sleep 2 && exit 0\" \"sleep 30 && exit 1\""
  },
  "dependencies": {
    "concurrently": "9.1.2"
  }
}

Running pnpm this-fails returns ELIFECYCLE  Command failed.
Image

Running pnpm this-passes is happy
Image

Debug

This works as expected switching to use npm
I debated if this is a concurrently bug, or a pnpm one, but In the end, concurrently should probably be able to handle killing any kind of process in isolation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions