Conversation
|
@sunrabbit123 Thank you for your contribution and I apologize for my delay in taking a look at it! Would you mind rebasing your branch, which I think should resolve the merge conflicts? You'll also need to move your new file |
|
I rebased main without to merge lock file
I allowed |
- Refactor package.json to support both ESM and CJS module formats. - Update repository URL to point to the new location. - Replace TypeScript build command with tsdown for improved build process. - Add tsdown configuration file for build settings. - Update dependencies to include tsdown.
- Add main and module fields to specify entry points for CommonJS and ESM. - Update exports structure to support both import and require formats with correct type definitions.
|
@sunrabbit123 I think I got it. I had to make some changes to get the tsdown build working (#814), but after fixing that it became relatively straightforward. Can you test this out and confirm whether it's working for you? I'll try to do some more testing tomorrow. |
|
@sunrabbit123 Looks like it's resolved from the Yarn package registry. Are you seeing this error when trying to install the dependencies for development? i.e. |
|
yeah, i failed when run the well, you use |
|
I wonder if it's because you're using Yarn 2, while the project is configured for Yarn 1? Are you able to easily install Yarn 1 to try that? |
|
I've realized that the I'm not sure why your |
|
@sunrabbit123 Based on some light research into the issue, I think your Yarn version might be old enough to suffer from a bug that is causing this. Yarn 2.4.3 was released on September 6, 2021. You may need to either install Yarn 1.22.22 (released March 9, 2024), 3.8.7 (released December 4, 2024), or 4.12.0 (released November 23, 2025). |
|
oh thx for research thank you. |




What changed with this PR:
just add tsdown and change package.json for to support cjs
https://www.npmjs.com/package/prettier-plugin-java-for-cjs?activeTab=code
thank you for making this project
wow, I surprise it
but this library is not support cjs, I failed use this on my project