yarn-workspace-sync-deps

0.3.3 • Public • Published

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, 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:

$ yarn add --dev -W yarn-workspace-sync-deps

Usage

We are using it after yarn install in the root workspace:

{
  "scripts": {
    "postinstall": "yarnw-sync-deps && yarn --ignore-scripts"
  }
}

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.3
    55
    • latest

Version History

Package Sidebar

Install

npm i yarn-workspace-sync-deps

Weekly Downloads

327

Version

0.3.3

License

MIT

Unpacked Size

7.53 kB

Total Files

7

Last publish

Collaborators

  • jhen0409