Perhaps I’m missing something, but when I’ve done this in the past, I get weird package resolution because my index.js isn’t in the root (`npm publish` publishes the root and doesn’t support alternate paths to my knowledge) - in the end people have to `import x from “mylib/dist”`.
I got round this with some funky step where I copy the package.json into the dist folder and rewrite some paths. Is there a better way to do this?