Skip to content

Store local yarn versions as .cjs files#8145

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

Store local yarn versions as .cjs files#8145
arcanis merged 1 commit intoyarnpkg:masterfrom
bgotink:feature/yarn-set-version-cjs

Conversation

@bgotink
Copy link
Copy Markdown
Member

@bgotink bgotink commented May 21, 2020

Summary

This improves the experience of working with yarn in workspaces that are marked as "type": "module" in the package.json file.

This change has also been applied in yarn 2, see yarnpkg/berry#1354

Test plan

Everything continues to work.
Even in node versions that don't explicitly support .cjs files, any unrecognised file extension is assumed to be javascript and as such any node version can load yarn as .cjs file.

This improves the experience of working with yarn
in workspaces that are marked as "type": "module"
in the package.json file.

This change has also been applied in yarn 2, see yarnpkg/berry#1354
@arcanis arcanis merged commit fc8489a into yarnpkg:master May 25, 2020
arcanis pushed a commit that referenced this pull request Aug 27, 2020
This improves the experience of working with yarn
in workspaces that are marked as "type": "module"
in the package.json file.

This change has also been applied in yarn 2, see yarnpkg/berry#1354
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