auto-sync-deps v1.16.0
auto-sync-deps
Automatically keep your yarn and pipenv dependencies in sync with git changes.
Install
- Due to limitations in husky
only do this with
package.jsonin your git root (but auto-sync-deps will update other package trees as well) yarn add --dev auto-sync-deps- Edit root
package.jsonand add the following to the top-level:{ "name": "...", "...": "...", "husky": { "hooks": { "post-checkout": "yarn sync-deps", "post-merge": "yarn sync-deps", "post-rewrite": "yarn sync-deps" } } } - To manage python Pipfile's both
pipenvandpyenvneed to be installed
What it does
When a change to a package tree (as in a change to a yarn.lock or Pipfile.lock)
is pulled, merged, rebased, or checked out then update that package tree.
No more wondering why things aren't working because someone has
committed a package change, but you still have an older version installed.
You can also force a manual update of all package trees with yarn sync-deps
What this handles
- Multiple
package.json,Pipenv, andPoetrypackage trees (but only install this package in the root one) - Form the git hooks the installation is only run when that particular lock file has changed
- Install the latest version of the python specified in the Pipfile using
pyenv - In a Meteor project use the Meteor version of node to ensure binary compatibility of compiled modules
Possible improvements
- Make it work with npm's
package-lock.json(could know to useyarnornpmbased offnpm_config_user_agentenv var)
Development
Release
yarn publish --major or yarn publish --minor or yarn publish --patch depending on the change
10 months ago
11 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago