#574
Electrobun doesn't work in TypeScript 7, causes deprecation warnings in 6
baseUrl has been deprecated since TypeScript 6 and is removed outright in TypeScript 7. Extending .hutch/devkit/tsconfig.json (as the docs and examples all require) does not work at all and causes compilation errors in TypeScript 7. Overriding with "baseUrl": null and adding "paths": { "*": ".hutch/devkit/*" } lets Electrobun itself compile but overrides its own paths, breaking all electrobun/* imports in your Cottontail/Bun code.
I've created this script to copy all of Electrobun's paths to my
tsconfig.json(essentially doing whatextends:would do) while trying to preserve whitespace as best as possible so diffs/formatters don't complain. This is not a long-term solution at all, but it works - proving Electrobun is not somehow incompatible with TS 6/7; it just hasn't been updated for some reason. Hopefully this saves the sanity of a few devs until this gets fixed properly.