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

build: fix type resolution issue #269

Merged
merged 4 commits into from
Jul 2, 2024
Merged

Conversation

aryaemami59
Copy link
Contributor

This PR:

  • Changes top level types field in package.json from ./lib/jiti.d.mts to ./lib/jiti.d.cts to fix Node10 resolution.
  • Adds .js extension to ./types import to resolve Node16 resolution.
  • Changes createJiti import from a type import to a value import to fix InternalResolutionError.
  • Converts export default to export = in jiti.d.cts to fix FalseExportDefault.
Before

jiti-before

After

jiti-after

- Changed top level `types` field in `package.json` from `./lib/jiti.d.mts` to `./lib/jiti.d.cts` to fix `Node10` resolution.
- Added `.js` extension to `./types` import to resolve `Node16` resolution.
- Change `createJiti` import from a `type` import to a value import to fix `InternalResolutionError`.
- Convert `export default` to `export =` in `jiti.d.cts` to fix `FalseExportDefault`.
@pi0 pi0 changed the title Fix issues related to default exports to comply with @arethetypeswrong standards build: fix type resolution issue Jul 2, 2024
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Thanks ❤️

@pi0 pi0 merged commit bdadfec into unjs:main Jul 2, 2024
5 checks passed
@aryaemami59 aryaemami59 deleted the fix-default-exports branch July 2, 2024 19:54
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