You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But bumping the dev dependencies in those libraries is blocked behind piotrwitek/ts-mocha#70, which essentially boils down to the challenge: If you have an esm module in the dependency tree, it changes how imports work with typescript which interferes with how mocha does things. One solution is to convert the library itself to ESM, but then you are no longer exporting CJS to your consumers. Workarounds for that would be to either compile an additional CJS version or have an ESM wrapper for your CJS somehow. I'm not going to invest time into that, but instead wait until upstream figures stuff out. 🤷
Some interesting reads I encountered along the way
In order to bump my dependency tree I would need to bump some of my testing libraries as well
But bumping the dev dependencies in those libraries is blocked behind piotrwitek/ts-mocha#70, which essentially boils down to the challenge: If you have an esm module in the dependency tree, it changes how imports work with typescript which interferes with how mocha does things. One solution is to convert the library itself to ESM, but then you are no longer exporting CJS to your consumers. Workarounds for that would be to either compile an additional CJS version or have an ESM wrapper for your CJS somehow. I'm not going to invest time into that, but instead wait until upstream figures stuff out. 🤷
Some interesting reads I encountered along the way
The text was updated successfully, but these errors were encountered: