Skip to content

Using a pnpm: shortcut with a wildcard (*) does not work with JSON5 (package.json5) #527

Open
@mark-monteiro

Description

@mark-monteiro

pnmp supports using package.json5 instead of the regular package.json, which is super useful to be able to add comments in the package file.

Concurrently allows specifying a shortcut command with a * wildcard like concurrently "pnpm:lint:*", which would run all scripts in package.json that start with lint:.

This all works well when running with package.json, but when using packages.json5, it results in the following error:

$ pnpm test

> example-project@ test C:\.......\example-project
> concurrently --group pnpm:test:*

 ELIFECYCLE  Test failed. See above for more details.

This error occurs even if the file contents have not changed at all (i.e. still valid regular JSON) and only the file has been renamed to .json5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions