Skip to content

[Bug] README.md is not published to npm #64

Closed

Description

@Deadarius

When I try lerna publish - npm registry doesn't display readme, however when I use npm publish - it does.

Activity

  1. jamiebuilds commented on Feb 22, 2016

    @jamiebuilds
    Contributor

    The README where? Individual packages should have their own README, the primary one at the root of the repo will not be published anywhere.

  2. gigabo commented on Feb 22, 2016

    @gigabo
    Contributor

    We're actually seeing the same thing. Assumed we were doing something wrong. Hadn't considered that it may be related to deploying with lerna.

    Here's our package and here's the corresponding npm page with missing README.

  3. jamiebuilds commented on Feb 22, 2016

    @jamiebuilds
    Contributor
  4. gigabo commented on Feb 22, 2016

    @gigabo
    Contributor

    Maybe something to do with the package not living at the repo root?

    Seems more likely to be an npm bug than a lerna bug, honestly.

  5. Deadarius commented on Feb 22, 2016

    @Deadarius
    Author

    Yes, I do have readmes... When I was trying to find a problem I noticed that you just run existing npm... have no idea what can be a problem here. Only aware of this issue in outdated version of npm.

  6. Deadarius commented on Feb 22, 2016

    @Deadarius
    Author

    @gigabo But it works fine when I run npm publish directly...

  7. ianwremmel commented on Mar 8, 2016

    @ianwremmel
    Contributor

    I seem to be running into the same issue. I definitely have a new README, but the changes aren't showing up on NPM.

  8. ianwremmel commented on Mar 8, 2016

    @ianwremmel
    Contributor
  9. ianwremmel commented on Mar 8, 2016

    @ianwremmel
    Contributor

    I have a hypothesis that the way lerna messes with dist-tags isn't triggering npm's normal website refresh job. I've opened a support ticket with npm, inc to investigate and will report back here if I hear anything.

  10. Deadarius commented on Mar 8, 2016

    @Deadarius
    Author

    @ianwremmel thank you very much, I still suffer from this issue.

  11. jamiebuilds commented on Mar 8, 2016

    @jamiebuilds
    Contributor
  12. ianwremmel commented on Mar 8, 2016

    @ianwremmel
    Contributor

    I heard back from npm. It is indeed a result of the dist-tags technique used by lerna. npm has an open issue: https://github.com/npm/newww/issues/389#issuecomment-188428605

  13. ianwremmel commented on Mar 10, 2016

    @ianwremmel
    Contributor

    Ok, it's a hack, but a I got some help from npm and there's at least a way we can trick npm into rebuilding the readme.

    First, add "-readmehack" to the end of the package version in package.json, then:

    npm publish
    npm dist-tag add [email protected] latest
    npm unpublish [email protected]
  14. jamiebuilds commented on Mar 10, 2016

    @jamiebuilds
    Contributor

    I don't really want to put a hack like that into lerna. The publishing process is already very complex and that adds a lot of complexity

  15. ianwremmel commented on Mar 10, 2016

    @ianwremmel
    Contributor

    Agreed, I'm not suggesting that gets hacked in, but it at least helps those with the problem until npm fixes the bug.

  16. 3 remaining items

  17. jamiebuilds commented on May 3, 2016

    @jamiebuilds
    Contributor

    Locking this. I want an update just as much as everyone, but please just follow the actual issue on npm: https://github.com/npm/newww/issues/389

    Edit (@gigabo): Looks like the npm ticket moved here: https://github.com/npm/registry/issues/42

    (Thanks @ben-eb & @bebraw for pointing that out)

  18. changed the title [-]README.md is not published to npm[/-] [+][Bug] README.md is not published to npm[/+] on Nov 16, 2016
  19. hzoo commented on Jan 20, 2017

    @hzoo
    Contributor

    Alright!!! An update to this issue: it should be fixed (via npm side)!

    So I just published 6.22.0 yesterday and was thinking about publishing to the latest tag first instead of first lerna-temp then moving to latest but forgot. Then I was checking the readme's and it looked like they were already updated magically!?

    Turns out @bcoe had been working on fixing this issue, so it looks like it's all good for us on this one?

    it now renders the README directly from the package, rather than pulling it out at publish time.


    We haven't published a new babel version in a month (>30 days)

    Example with babel-core:

    https://www.npmjs.com/package/babel-core

    screen shot 2017-01-20 at 3 35 33 pm

    https://github.com/babel/babel/pull/5101/files (5 days ago)

    screen shot 2017-01-20 at 3 35 16 pm

    EDIT:

    😍😍😍😍😍😍
    😍😍😍😍😍😍

  20. unlocked this conversation on Jan 20, 2017
  21. gigabo commented on Jan 20, 2017

    @gigabo
    Contributor

    Awesome! Finally! 🎉

  22. ianwremmel commented on Jan 20, 2017

    @ianwremmel
    Contributor

    Awesome! Thanks @bcoe! The emoji don't exist to express my excitement!

  23. bcoe commented on Jan 20, 2017

    @bcoe
    Contributor

    Thanks! Giving credit where credit is due, the whole backend team at npm has been working on infrastructure this makes solving problems like this much easier (we've been rolling out a database that was @chrisdickinson's mad-science idea). I'm really excited to make the tag workflow elegant, for the community and for the benefit of my own OSS projects.

  24. added a commit that references this issue on Jan 28, 2017
  25. tomwayson commented on Dec 20, 2017

    @tomwayson

    I'm confused. It sounds like @hzoo is saying that the npm website now picks up the README from whatever's on master in GitHub repository. I have not experienced this in my own projects, looking though issues for the npm website and registry for whatever changes were alluded to above, I see comments like this which make it seem like that is not the case at all.

    @bcoe would you be able to shed light on the behavior we should expect, or point to any docs or at least the changes above?

    Thanks!

  26. bcoe commented on Dec 20, 2017

    @bcoe
    Contributor

    @tomwayson Hey 👋

    So, rather than always pointing to the last published README file, we now point to whatever README is pointed to by the latest tag of npm. so, if you have a workflow in which you publish to a beta tag (as an example) and then use npm dist-tag add to switch this tag, you will see the appropriate README after the swap has taken place.

  27. lock commented on Dec 27, 2018

    @lock

    This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  28. locked as resolved and limited conversation to collaborators on Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions