I’m converting my github repo to also be a npm project … see Best practices for non AMD/UMD package
Any pointers to making a really good npm package?
In particular, one that would be Observable-friendly?
I have finally groked UMD and converted my github repo to be UMD where there were IIFEs.
But npm seems more subtle than I thought. Many keys in package.json that I don’t really understand. (files? main? jsnext:main? module? …). I find https://github.com/rollup/rollup/wiki/pkg.module obscure.
EDIT: Oh boy: https://github.com/d3/d3/issues/3138
I don’t feel stupid anymore. It is hard!