I m optimizing some of m…

less than 1 minute read

I’m optimizing some of my workflow. I use husky for git hooks during development. I just found the --uncommitted flag to use in my pre-commit lint hook. Is there a similar flag or shorthand I can use in my pre-push so I can limit tests to affected apps/libs since my previous push on the current working branch. "hooks": { "pre-commit": "npm run affected:lint -- --uncommitted --parallel", "pre-push": "npm run affected:test -- --parallel", "post-merge": "sh ./post-merge.sh" }

Updated: