knightedcodemonkey / duel

TypeScript dual packages.
MIT License
20 stars 4 forks source link

Doesn't handle comments in tsconfig #21

Closed spence-s closed 1 year ago

spence-s commented 1 year ago

Awesome work here, this worked great for me!

This is the best thing I have seen for ts dual support.

However, tsconfig allows comments and this lib just uses JSON.parse which throws on comments.

Consider using JSON5 to parse instead https://www.npmjs.com/package/json5