dominikg / tsconfck

A utility to find and parse tsconfig files without depending on typescript
Other
293 stars 14 forks source link

fix: masquerading as esm in cjs #129

Closed xiaoxiangmoe closed 1 year ago

xiaoxiangmoe commented 1 year ago

See https://arethetypeswrong.github.io/?p=tsconfck%402.1.2

image

And this can be fixed in tsup 7.1.0 https://github.com/egoist/tsup/pull/934#issue-1770253995

After remove types field, the result is

image
dominikg commented 1 year ago

https://github.com/dominikg/tsconfck/tree/version-3

is going to remove the cjs output and tsup. so this change would be very short-lived.

https://arethetypeswrong.github.io/?p=tsconfck%403.0.0-next.7

note that attw wrongfully reports tsconfck@3 being built (it is plain esm js) and claims require resolving to esm. There is no require exports condition, it is esm only.