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

Add support esm for remaining modules #1064

Merged
merged 5 commits into from
May 25, 2024
Merged

Conversation

chrisllontop
Copy link
Contributor

@chrisllontop chrisllontop commented May 25, 2024

Please check if the PR fulfills these requirements

  • Followed the Contributing guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

This PR adds ESM support for the remaining modules. Additionally, it fixes a typo in the filenames tsconfig.csj.json to the correct tsconfig.cjs.json.

Fixed a typo in package build scripts across multiple packages. The TypeScript configuration file name has been corrected from tsconfig.csj.json to tsconfig.cjs.json.
The package.json for all packages have been updated to support both ESM and CJS modules. 'main', 'module' and 'types' properties point to the appropriate ESM and CJS locations. Now, 'exports' field is included to support conditional exports to load different file formats based on the environment.
The export method of multiple packages has been updated. Both the default export and module.exports have been used now in offline, postgres, redis, sqlite, and tiered package files. These changes support different types of module systems.
@chrisllontop chrisllontop changed the title feat: support esm for remaining modules Add support esm for remaining modules May 25, 2024
@jaredwray jaredwray merged commit 4eedac9 into jaredwray:main May 25, 2024
5 checks passed
@chrisllontop chrisllontop deleted the fix/esm branch May 25, 2024 19:20
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