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
Nx.json - Be able to add as implicit dependency value a RegExp #2483
Comments
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
It would be great to have it. |
Sorry. The issue was marked by mistake. I removed the label. |
Hey guys, we are really looking for this feature. Is there any plan to implement this? |
hi @mehrad-rafigh .... since v10.1 you can use globs in |
Hi @bekos. I'm afraid it doesn't solve my issue. |
@mehrad-rafigh sorry I missed your response! no, it doesn't seem to be supported 😞 the problem I see though, is that the proposed syntax is not compliant with the current format, as the value of
I will try to take a look and see if this an easy change 😃 |
hi @mehrad-rafigh @mauriziovitale 😃 can you please elaborate on your actual case? we are trying to understand if this would be a useful feature 🤔 |
Hi @bekos. Sorry for the late reply. For my use case I want all properties of package.json except version to be implicit dependencies. We are using semantic release to do the release management in an automated way. So everytime we merge a PR, semantic-release creates a new release and updates the version property in our package.json. Since package.json is an implicit dependency, running nx affected:build or any other affected script will build/test all libs and apps of our monorepo. This is a huge hussle for us and our biggest bottleneck. Hope that information helps. |
hi @mehrad-rafigh 😃 thx for the info. Do you really care for all the other properties in package.json or just the dependencies? Because i this case you could already have something like this:
|
I actually have to check that. Is that functionality already released @bekos? |
@mehrad-rafigh Yes. |
Will give it a try, when I'm back at the office |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Currently, Nx does not allow you to specify a regexp as the value of an implicit dependency such as
package.json
Prerequisites
Please answer the following questions for yourself before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION.
Expected Behavior
Should trigger the target action only if the @mycompany/lib has been changed
Please describe the behavior you are expecting
Current Behavior
What is the current behavior?
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
If you can provide steps to reproduce from scratch, that would be enormously appreciated (i.e. where the first step is
npx create-nx-workspace@latest repro-workspace
)Context
Please provide any relevant information about your setup:
Example of nx.json
A minimal reproduction scenario allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
Failure Logs
Please include any relevant log snippets or files here.
Other
Any other relevant information that will help us help you.
The text was updated successfully, but these errors were encountered: