A library for monorepo pre-push hooks to test changed project only.
yarn add -D morepush
yarn morepush <PARENT_DIR_NAME>
For example, if you have monorepo tree that goes like this:
infra
- packages
- eslint-config-kodefox
- exoflex
- flexhip
You can use infra/packages
as the PARENT_DIR_NAME
.
$ yarn morepush infra/packages
You can also exclude one or more project directory by using --exclude
.
$ yarn morepush infra/packages --exclude eslint-config-kodefox exoflex