We use a custom script that resolves the ~/core in the import paths in .d.ts files (since those won't resolve). But we miss to do that for .d.mts files, which leaves them broken.
Also added two layers of protection to prevent this issue in the future:
grep for any ~/core in the resolved .d.{ts,mts} modules;
tsc run on all the .d.{ts,mts} modules to make sure they compile.
We use a custom script that resolves the
~/core
in the import paths in.d.ts
files (since those won't resolve). But we miss to do that for.d.mts
files, which leaves them broken.Also added two layers of protection to prevent this issue in the future:
grep
for any~/core
in the resolved.d.{ts,mts}
modules;tsc
run on all the.d.{ts,mts}
modules to make sure they compile.