Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jun 21, 2025

would require a new 0.5 release instead of a 0.4.1 release though...

@susnux susnux requested a review from ShGKme June 21, 2025 13:36
@susnux susnux added 3. to review Waiting for reviews breaking 💥 changes that might require adjustments in app code using this library. labels Jun 21, 2025
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the chore/modernize-esm branch from 408140e to bc6cef8 Compare June 21, 2025 13:59
@susnux susnux requested a review from ShGKme June 21, 2025 14:00
Comment on lines +16 to +21
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Or simply, as there are no subpaths:

Suggested change
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC I had problems with such exports because types is not parsed correctly, so least this was needed:

"exports": {
    "types": "./dist/index.d.ts",
    "default": "./dist/index.js"
}

@susnux susnux merged commit e0ee4b7 into main Jun 22, 2025
10 checks passed
@susnux susnux deleted the chore/modernize-esm branch June 22, 2025 05:07
@susnux susnux mentioned this pull request Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews breaking 💥 changes that might require adjustments in app code using this library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants