haxiomic / dts2hx

Converts TypeScript definition files (d.ts) to haxe externs (.hx) via the TypeScript compiler API
MIT License
135 stars 9 forks source link

Doesn't munge `@lib/sublib` package names in the same way between folder and haxelib #86

Open 0b1kn00b opened 3 years ago

0b1kn00b commented 3 years ago

@jest/globals has the haxelib name @jest/globals which doesn't pass validation, whereas jest-globals the filepath is ok.

haxiomic commented 3 years ago

I'm just looking into this – which lib are you converting? I try

npm i jest
dts2hx jest

And I just get nothing but typescript errors (at first glance it looks to be because it's a TS 4 lib and dts2hx is still on 3.7)

0b1kn00b commented 3 years ago

It's generating things more or less despite the errors. Should I close this?

haxiomic commented 3 years ago

Strangely enough on dts2hx 0.15.3 I don't get any files Let's keep this open so I can check jest all works correctly when I upgrade to TS 4 later this year