-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush] exclude files from rush change
diff calculation
#2263
Comments
rush change
diff calculationrush change
diff calculation
This is a great idea. My recommendation is to use We try to avoid putting settings like |
Fair enough - I agree that What if I have |
Right - looks like for that library, if I edited something in |
Right, hmm... I didn't realize that. Source maps are not going to be reliable enough.
This is not a good user experience. The most important audience for
Yeah. It feels like it should be designed as an ignore file like Maybe we could make these files riggable? |
CC @iclanton |
I like the idea of I think making this riggable will be more confusing that useful. @mmkal - is this something you'd be interested in implementing? |
I am of the opinion that the default recursive nesting behavior of .gitignore and .npmignore gets really confusing as well (it's also slow, since it requires a bunch of otherwise unnecessary file system operations) on every transaction. I'd prefer to have a policy of there being exactly one file in each project root, though I guess we can evaluate performance. |
Is this a feature or a bug?
Please describe the actual behavior.
If a project edits a test file, and no production code,
rush change
demands that a changefile be generated even though there are no (meaningful) updates required.What is the expected behavior?
Allow configuring files to ignore from the diff calculation. One option could be
.npmignore
, or to use the package.jsonfiles
property. This may need to follow source maps to avoid false negatives for packages that don't include "source" typescript, though. It may be less complex to pass in directly, e.g.rush change ... --ignore '**/*.test.ts' --ignore '**/*.md'
, or to put something like"ignoreChanges": ["**/*.test.ts", "**/*.md"]
in rush.json.If this is a bug, please provide the tool version, Node.js version, and OS.
The text was updated successfully, but these errors were encountered: