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

fix: resolve "~/core" import for .d.mts modules #2095

Merged
merged 2 commits into from Mar 17, 2024
Merged

Conversation

kettanaito
Copy link
Member

@kettanaito kettanaito commented Mar 17, 2024

We use a custom script that resolves the ~/core in the import paths in .d.ts files (since those won't resolve). But we miss to do that for .d.mts files, which leaves them broken.

Also added two layers of protection to prevent this issue in the future:

  • grep for any ~/core in the resolved .d.{ts,mts} modules;
  • tsc run on all the .d.{ts,mts} modules to make sure they compile.

@kettanaito kettanaito changed the title chore: resolve "~/core" import for .d.mts modules fix: resolve "~/core" import for .d.mts modules Mar 17, 2024
@kettanaito kettanaito force-pushed the chore/patch-mjs-dts branch 2 times, most recently from cadb795 to 1283fb3 Compare March 17, 2024 18:54
@kettanaito kettanaito merged commit 7cdbd1a into main Mar 17, 2024
12 checks passed
@kettanaito kettanaito deleted the chore/patch-mjs-dts branch March 17, 2024 20:58
@kettanaito
Copy link
Member Author

Released: v2.2.7 🎉

This has been released in v2.2.7!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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

1 participant