Skip to content

Spawn local yarn .cjs files also using process.execPath#8144

Merged
arcanis merged 1 commit intoyarnpkg:masterfrom
bgotink:feature/yarn-cjs
May 25, 2020
Merged

Spawn local yarn .cjs files also using process.execPath#8144
arcanis merged 1 commit intoyarnpkg:masterfrom
bgotink:feature/yarn-cjs

Conversation

@bgotink
Copy link
Copy Markdown
Member

@bgotink bgotink commented May 21, 2020

Summary

Yarn 2 recently switched its local versions from the .js extension to the .cjs extension to improve support for workspaces marked as "type": "module" in the package.json. These should also be executed by process.execPath instead of falling back to the node version on the PATH.

yarnpkg/berry#1354

This doesn't change anything the user will notice (berry with .cjs extension hasn't been released yet) so unsure what to add to changelog, if anything.

Test plan

ø

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.

2 participants