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

transpile to esm and cjs #576

Merged
merged 3 commits into from
Mar 26, 2024
Merged

transpile to esm and cjs #576

merged 3 commits into from
Mar 26, 2024

Conversation

foxriver76
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@Apollon77 Apollon77 left a comment

Choose a reason for hiding this comment

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

@AlCalzone Any opinion?

"main": "build/cjs/index.js",
"types": "build/esm/index.d.ts",
"module": "build/esm/index.js",
"exports": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

In matter.js we ended in this structure https://github.com/project-chip/matter.js/blob/main/packages/matter.js/package.json#L58-L67 ... there was a point for this additional types/default substructure

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

From my experience so far this is not needed as the esm types should be just fine for cjs as well.

@foxriver76 foxriver76 merged commit 603498f into master Mar 26, 2024
10 checks passed
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