klarna / electron-redux

Use redux in the main and browser processes in electron
MIT License
743 stars 94 forks source link

Use standard package.json exports pattern #353

Open wnayes opened 7 months ago

wnayes commented 7 months ago

This updates the alpha branch package.json to use exports to declare the different available exports. I was having a lot of trouble using the ESM code in the current alpha with how it is currently set up.

This would be considered a breaking change, however it seems like the right direction to pursue for a future major release.

The first commit implements the proposed package exports changes.

The second commit updates the repository so that test code continues to compile. This was a little more involved.

Just putting this out here in case there is interest in taking the change upstream. I published this as @wnayes/electron-redux if anyone is interested.

CLAassistant commented 7 months ago

CLA assistant check
All committers have signed the CLA.