https://github.com/mybigday/yarn-workspace-sync-deps
A simple script for keeping dependencies are same between root and packages on Yarn workspaces
https://github.com/mybigday/yarn-workspace-sync-deps
Last synced: about 2 months ago
JSON representation
A simple script for keeping dependencies are same between root and packages on Yarn workspaces
- Host: GitHub
- URL: https://github.com/mybigday/yarn-workspace-sync-deps
- Owner: mybigday
- License: mit
- Created: 2017-11-30T07:12:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-14T18:56:53.000Z (about 2 years ago)
- Last Synced: 2025-03-23T09:48:30.728Z (2 months ago)
- Language: JavaScript
- Size: 801 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yarn-workspace-sync-deps
> A simple script for keeping dependencies are same between root and packages on
> Yarn workspaces.## What?
We are using Yarn workspaces and enabled [Greenkeeper](https://greenkeeper.io),
but Greenkeeper currently doesn't check for `packages/*`. We gave up the
independent dependencies in `packages/*`, make the dependencies same as root
dependencies.You still need update the dependencies of `packages/*` on local, but it will be
helpful for CI and Greenkeeper.## Installation
In the root workspace:
```bash
$ yarn add --dev -W yarn-workspace-sync-deps
```## Usage
We are using it after yarn install in the root workspace:
```json
{
"scripts": {
"postinstall": "yarnw-sync-deps && yarn --ignore-scripts"
}
}
```## License
[MIT](LICENSE.md)