Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mark-monteiro opened this issue Feb 6, 2025 · 0 comments

Comments

@mark-monteiro
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant