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

Make cjs the main package entry point #203

Merged
merged 1 commit into from
Jun 22, 2022
Merged

Conversation

adamraine
Copy link
Collaborator

https://nodejs.org/docs/latest-v12.x/api/packages.html#packages_main

"main" is used as the entry point whenever a package is imported via require so it should point to the CJS entry point.

This isn't normally an issue because "exports" will override "main". However, Jest doesn't appear to have this behavior, and it will use "main" as the default entry point.

Possibly related #188

@conventional-commit-lint-gcf
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@OrKoN OrKoN self-requested a review June 22, 2022 07:18
@OrKoN OrKoN enabled auto-merge (squash) June 22, 2022 07:51
@OrKoN OrKoN disabled auto-merge June 22, 2022 07:53
@OrKoN OrKoN enabled auto-merge (squash) June 22, 2022 07:53
@OrKoN OrKoN disabled auto-merge June 22, 2022 07:53
@OrKoN OrKoN merged commit 4d10066 into puppeteer:main Jun 22, 2022
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.

None yet

2 participants