Some packages have issues when used with newer typescript compiler module options

Hey folks! I was doing some typescript upgrades recently and started running into an issue where tsc wouldn’t be able to resolve type definitions for some codemirror packages, specifically for cjs imports. I am pretty sure this error was known, got addressed in the @codemirror/buildhelper, and some packages got their version updated since and so have a published version with d.cts files. Some packages are not though, I’m specifically running into an issue with @codemirror/lang-json.

I’m sorry in advance if that’s a wrong place to bring up these issues, but I couldn’t find a dedicated issue tracker, github issues are disabled (understandably), and I can’t submit a patch with a “fix” because the fix would be to publish a new version :sweat_smile:

So this is basically a “bug” report / ask to publish some of those packages that didn’t get the publish since the change to the buildhelper was introduced

(GitHub issues are centralized in codemirror/dev. There’s a link to that in every package’s readme file.)

I’ve published new minor versions for all packages that hadn’t had a release since May 2023, which should help with this.

1 Like

Ohhhh, that’s my bad, sorry for that and thanks for pointing this out. And thanks a ton for doing a publish!