-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Yarn workspaces #473
Comments
It has been the intention of Facebook to merge Lerna into Yarn - yarnpkg/yarn#946 (comment) As noted by one of the Yarn core team members, Yarn Workspaces is the native support for Lerna like workflows - yarnpkg/yarn#946 (comment) So, in short, Yarn Workspaces is likely to be the future for monorepos (at least for those currently using |
Blog post in progress here: https://github.com/yarnpkg/website/pull/580/files (https://deploy-preview-580--yarnpkg.netlify.com/blog/2017/07/26/introducing-workspaces/) Some notes for now:
|
This means we need to emulate the same nested directory structure of |
We also should incorpoate lerna detection and yarn detection. With lerna we simply look at the |
We've been using Yarn workspaces since before adding renovate to our repo. A few issues I've noticed, although I'm unsure if they're related to workspaces or a problem with the configuration :)
Using the following config: "renovate": {
"pinVersions": true,
"semanticCommits": true,
"assignees": ["denkristoffer"],
"prCreation": "not-pending",
"automerge": "minor"
} Is there anything in particular I can help test? |
@denkristoffer thanks for the feedback.
Does this root
unpublish-safe was perhaps a bit of a mistake by me. I enabled it by default but found most users wanted to disable it, so I changed the default back to disabled. You should only see it now if you manually enable it. Sorry for any confusion - from now on I will be adopting a "law of least surprises" when it comes to new feature enablement.
Semantic commits/prefixes should now be detected every run, based on the most recent commit history in the repo. So if you're already using semantic commits then so will Renovate, however you can manually enable or disable (override) this by setting to true or false. What are you seeing? Your config looks fine btw - although |
Yes, it has a few devDependencies like
Even when it was enabled, it didn't seem to respect the
We haven't actually switched to using semantic commits ourselves yet, I was hoping to take the first step by using it with renovate 🙂 The latest PR from renovate is called "Update dependency @data-ui/histogram to v0.0.6" – that's from 12 hours ago even though I added |
This feature adds explicit support for correctly generating the yarn.lock file for workspaces. Specifically, it means that the yarn.lock in the root directory is regenerated whenever *any* package.json is modified. Previously lock files were only every updated if its corresponding package.json changes, but that is not the way yarn workspaces works. Closes #473
This feature adds explicit support for correctly generating the yarn.lock file for workspaces. Specifically, it means that the yarn.lock in the root directory is regenerated whenever *any* package.json is modified. Previously lock files were only every updated if its corresponding package.json changes, but that is not the way yarn workspaces works. Closes #473
The text was updated successfully, but these errors were encountered: