[Bug]: Correctly export CommonJS types #5604
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
All packages
Version(s)
2.6.6
Bug Description
Each package exports CJS + ESM implementations, but only one version of types. This makes Typescript think that the package is always ESM, which means that Typescript will not allow importing this package from CommonJS while using Node16 module resolution.
The fix is to change the build to output CJS types as well ESM types, and then update the package.jsons to something like this:
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
See above
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: