-
Notifications
You must be signed in to change notification settings - Fork 22
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
chore: relax dependencies #108
Conversation
This helps with Bielik20#68 as now the users are free to upgrade nx within 19.x without waiting for our update. This follows two most popular third-party nx plugins: `nx-stylelint` and `nx-remotecache-custom`.
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 28491d6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 3 targetsSent with 💌 from NxCloud. |
Does it? The dependencies of packages are defined in their individual |
It helps with my last comment, which is a part of the problem but not its entirety (since "helps with" and not "solves"). Now 19.6 is out but I can't migrate because your strict constraints cause massive package duplication. If you fix the forced dependency update part it won't help before something like this PR is also made. |
Yeah, but what I am saying it does nothing. Root I will change it in #109 but keep an eye if after Nx update if it still is "relaxed". If I forget about it nag me 😅 |
Released |
It will nag you. The right solution is to use a lockfile for library development, and update it carefully, while letting the users to fix their dependency problems by themselves. So your old constraints were good for you as your builds didn't suddenly break due to third-party updates. But showing that on the library users is incorrect and contradicts the practice of other third-party nx plugins. The plugins developed by nrwl pin their versions down because they are released as a whole. You should only pin your versions whenever you are ready to release with every upstream release. AFAIK no third-party plugin does that. Upd: you already do that pinning by npm ci in https://github.com/Bielik20/nx-plugins/blob/master/.github/actions/setup/action.yml#L20 so it won't affect you unless you are careless with committing new package-locks. |
Exactly, the change wasn't needed. So it was already with |
Everything is always with nx-plugins/packages/nx-npm/src/executors/publish/executor.ts Lines 66 to 81 in 44144b7
So the error must be somewhere else. |
This helps with #68 as now the users are free to upgrade nx within 19.x without waiting for our update.
This follows two most popular third-party nx plugins:
nx-stylelint
andnx-remotecache-custom
.