npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

readme is empty from registry causing issues with yarn

I have a monorepo and have published a module and looks what I’d expect with reading the proper file. However, over on yarn the module is showing the from the root directory and not what was published. I was told by someone on the yarn project that the reason they are showing a different is because npm’s registry endpoint has an empty readme and readmeFilename entries which I can confirm.

My projects are using TypeScript and each package in the monorepo is compiled into the dist directory for each package and that’s what is published with. The for the package is in that directory, not the root so I’m not sure why this isn’t just working.

So my question is, how can I get npm to return the proper readme so that the yarn page can show the proper that it’s published with for the packages in my monorepo?