'How to update a component built with Bit.dev in multiple projects?
I have a project A and project B which both have installed (via npm) the same component X.
To use the updated component in both projects I have to manually go inside of each projects and execute yarn upgrade component-x.
We plan to have more than 30 projects consuming the same component and will be a completely nightmare go inside of each one and run yarn upgrade.
Is there a way where i can update this component in both projects after export with less effort?
If not so, how do I update this component that is installed across multiple projects more easily?
I'm using Bit Harmony version and NextJs as my framework and hosting them in Vercel.
Solution 1:[1]
For those who is in need of some solution, we solve it by changing our scope in Bit.dev to public and then configuring the dependabot to lookup for our dependencies.
Basic example of functional dependabot.yml
version: 2
registries:
bit-components:
type: npm-registry
url: https://node.bit.dev
token: ${{secrets.NPM_RC_TOKEN}}
updates:
- package-ecosystem: "npm"
directory: "/"
registries:
- bit-components
schedule:
interval: "daily"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dharman |
