-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README is not correctly shown on verdaccio using pnpm publish #4091
Comments
I am not sure what is the reason. Might be that the content of the readme should be added to the package.json on publish. If that is the case, you can try it, here is the manifest prepared for publish: pnpm/packages/plugin-commands-publishing/src/pack.ts Lines 127 to 128 in 5af305f
probably we can pass the readme to the exportableManifest and it can add it to the proper field of |
Yes, your described option works, thanks. Should I create a PR? |
sure, go ahead |
….json add readme file to published package.json to prevent missing in the verdaccio registry pnpm#4091
….json add readme file to published package.json to prevent missing in the verdaccio registry pnpm#4091
….json add readme file to published package.json to prevent missing in the verdaccio registry pnpm#4091
So, is it an issue with Verdaccio then? How does it work with npm if npm doesn't populate this field? cc @juanpicado |
npm reads README.* from package root https://docs.npmjs.com/about-package-readme-files also https://docs.npmjs.com/cli/v8/configuring-npm/package-json#files
|
I have the same problem. But what field should I use in |
yes it does https://github.com/npm/read-package-json/blob/main/read-json.js#L295 yarn was doing it until v2, yarnpkg/berry#1702 |
It is not in priority for me. If someone wants to do it, the easiest way is probably to add a setting for it. |
@dangreen I'll fix it this week |
@FolknR Thanks, but I'm already working on a fix. |
pnpm version: 6.23.6
Code to reproduce the issue:
pnpm publish
Expected behavior:
The readme file is being passed and shown correctly
Actual behavior:
The readme file isn't present in the publishing request body
Additional information:
Readme file is uploaded correctly
There is no issue using pnpm v5
There is no issue using npm
node -v
prints: v16.13.1The text was updated successfully, but these errors were encountered: