▲ | rovingeye 4 days ago | ||||||||||||||||||||||||||||||||||
I made the same comment here https://news.ycombinator.com/item?id=44931575 "To discourage package authors from publishing packages written in TypeScript" I tried to use it with private packages but that doesn't work either, apparently node doesn't even read the "private" field. | |||||||||||||||||||||||||||||||||||
▲ | throwanem 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
"Written only in TypeScript" might put it better. If your module ships TypeScript source and a JS build as it should, then this will never affect it. Otherwise, to support stripping arbitrary modules would immediately compromise the design goal of light weight, due to the torrent of ill-founded and -formed bug reports incorrectly raised on Node that would follow. ("Don't make the maintainers' lives too miserable to continue the work" being also of course an implicit goal.) | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
▲ | reactordev 4 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
It’s a missed opportunity for sure |