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

feat: add support for pnpm #1033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thedaviddias
Copy link

Description

Add support for pnpm.

Resolves #974

Copy link
Collaborator

@connectdotz connectdotz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I didn't use pnpm so could not test it... I assume you have tested it with your pnpm project, and it works...?

Please also update the tests accordingly.

Comment on lines 168 to +173
if (cmd === 'yarn') {
return { runtimeExecutable: 'yarn', args: [], ...commonConfig };
}
if (cmd === 'pnpm') {
return { runtimeExecutable: 'pnpm', args: [], ...commonConfig };
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they are identical (other than the cmd itself), maybe combine the if condition. Just curious if pnpm requires extra "--" like npm when passing extra arguments?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think -- needs to go in just like npm.

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

Successfully merging this pull request may close these issues.

pnpm run test -- is not handled as a package script when specified in jestCommandLine
3 participants