Comments (25)
Awesome! Thanks @bcoe! The emoji don't exist to express my excitement!
from lerna.
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.
from lerna.
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
https://github.com/babel/babel/pull/5101/files (5 days ago)
EDIT:
😍😍😍😍😍😍
😍😍😍😍😍😍
from lerna.
Awesome! Finally! 🎉
from lerna.
@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.
from lerna.
The README where? Individual packages should have their own README, the primary one at the root of the repo will not be published anywhere.
from lerna.
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.
from lerna.
Weird... we're literally just cd
-ing into the directory and running npm publish
from lerna.
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.
from lerna.
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.
from lerna.
@gigabo But it works fine when I run npm publish
directly...
from lerna.
I seem to be running into the same issue. I definitely have a new README, but the changes aren't showing up on NPM.
from lerna.
(by NPM, I mean https://www.npmjs.com/)
from lerna.
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.
from lerna.
@ianwremmel thank you very much, I still suffer from this issue.
from lerna.
This bug is hard to debug as I've had no problems with README's (https://www.npmjs.com/package/cf-component-modal)
from lerna.
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
from lerna.
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]
from lerna.
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
from lerna.
Agreed, I'm not suggesting that gets hacked in, but it at least helps those with the problem until npm fixes the bug.
from lerna.
In my case, I only actually have one readme I need to update, so I can put that in my publish script pretty trivially.
from lerna.
I'm having the same issue...
from lerna.
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)
from lerna.
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!
from lerna.
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.
from lerna.
Related Issues (20)
- lerna version not creating correct tags since `[email protected]` when signing commits and tags HOT 1
- Add support for `package.yaml` HOT 1
- Lerna hangs when running `lerna version` HOT 1
- Can't connect to nx cloud
- lerna repair does not respect prettier configuration HOT 4
- Critical vulnerability because of minimist HOT 1
- High vulnerability because of "kind-of" package HOT 2
- `lerna publish from-package` failed HOT 2
- Using "--amend" and "--message" options will not overwrite the original commit message HOT 2
- [BUG] lerna ERR! EUNCOMMIT M packages/types/CHANGELOG.md
- Lerna publish exit code 1
- Support For Custom Tagging Formats HOT 2
- Version only suggests major bump in independent mode
- `TypeError: (0 , minimatch_1.minimatch) is not a function` when running `lerna run webpack --stream` HOT 1
- `lerna watch` not working on arch linux
- Learna publish not working with gemfury
- Lerna run dev --parallel command is not starting all the processes
- Cannot override scoped registry in .npmrc HOT 1
- Configuring Published Files: blocks copying of assets into source location HOT 1
- Lerna utils detectProjects() function prevents natural process exit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lerna.