Skip to content

Conversation

@mvantellingen
Copy link
Member

@mvantellingen mvantellingen commented Dec 2, 2025

This pull request fixes an issue with the package's entry point references to ensure the correct file is used for module resolution. The main change is updating all references from index.js to index.mjs in the package.json, which should resolve problems with package release and module loading.

Package entry point corrections:

  • Updated the exports, main, and module fields in package.json to reference dist/index.mjs instead of dist/index.js, ensuring proper module resolution for consumers.
  • Added a changeset describing the fix to ensure the release process documents this correction. (.changeset/wet-trains-sip.md)

@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

🦋 Changeset detected

Latest commit: a9ac208

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mvantellingen mvantellingen merged commit 263e40f into main Dec 2, 2025
11 checks passed
@mvantellingen mvantellingen deleted the fix/release-process branch December 2, 2025 15:31
@github-actions github-actions bot mentioned this pull request Dec 2, 2025
mvantellingen pushed a commit that referenced this pull request Dec 2, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @labdigital/commercetools-mock@2.61.2

### Patch Changes

- [#355](#355)
[`263e40f`](263e40f)
Thanks [@mvantellingen](https://github.com/mvantellingen)! - Fix release
by properly referencing the `index.mjs` file in the package.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants