np icon indicating copy to clipboard operation
np copied to clipboard

Add flag to skip "Unclean working tree" check

Open brett-james-rocketlab opened this issue 1 year ago • 1 comments

I'm testing out np in a seperate branch, and trying to run it with yolo and no-cleanup, which should skip the check local working tree step. However, it's not and still checks. I get the -> Unclean working tree. Commit or stash changes first.

I'd like to be able to skip the check local working tree check, and get past the → Unclean working tree. Commit or stash changes first. message.

  1. add some local files like env.development which are okay to have on your local install. (to normally fail the unclean environment check)
  2. yarn np --no-cleanup --yolo --no-publish --any-branch --no-git-checks --no-cleanup The important part being --yolo in that test
  3. See the error when bumping

Expected behavior

To be able to get past the Check local working tree step

Environment

np - 7.6.2 Node.js - v16.13.2 Git - 2.30.1 OS - Mac OS 12.4 Git - 1.22.19

brett-james-rocketlab avatar Jul 11 '22 02:07 brett-james-rocketlab

I think it could even be part of --yolo

michakfromparis avatar Mar 04 '23 23:03 michakfromparis