You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into a tricky situation with our modules that are published to private git repos:
Starting with a clean master, run np patch
np does dirty checking and everything is legit, moves on
As a prerequisite to running the tests we do a build of the module which changes some of the dist files
When np gets to the npm version step this step fails because the tree is now dirty
This is an unfortunate side effect of a) having dist files that we only want to update as part of a publish and b) having to commit those dist files to git because we npm install out of git.
I think what we need is to be able to npm version --force which as per the docs will skip the dirty check.
I'm hesitant to set force: true in npmrc or the package.json because:
we'd have to do that on every repo we want to publish
force applies to more than just the version command
Any thoughts on how we could support this? I'm trying to think how we can avoid adding another flag to np but am struggling to find a better idea. I'm quite happy to contribute the solution, just wanted to gather some input on what that solution should be first 👍
The text was updated successfully, but these errors were encountered:
Running into a tricky situation with our modules that are published to private git repos:
np patch
np
does dirty checking and everything is legit, moves onnp
gets to thenpm version
step this step fails because the tree is now dirtyThis is an unfortunate side effect of a) having dist files that we only want to update as part of a publish and b) having to commit those dist files to git because we npm install out of git.
I think what we need is to be able to
npm version --force
which as per the docs will skip the dirty check.I'm hesitant to set
force: true
in npmrc or the package.json because:force
applies to more than just theversion
commandAny thoughts on how we could support this? I'm trying to think how we can avoid adding another flag to
np
but am struggling to find a better idea. I'm quite happy to contribute the solution, just wanted to gather some input on what that solution should be first 👍The text was updated successfully, but these errors were encountered: