-
Notifications
You must be signed in to change notification settings - Fork 15
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
build: migrate to Nx v17 inc deps #252
Conversation
I don't really get why the eslint-plugin tests fail... @vmasek any clue? |
I know now why the tests where failing. They rely on real eslint setup and the ouatput data changed. What would be the minimum fix to make this PR turn 🟢? Update: Update: |
@BioPhoton Why is this a precondition for #126? Are we not able to publish packages until we're on Nx 17? 🤨 That would surprise me, because I was able to publish the |
I wanted to get the update in before, but also decided today that its not a good idea. |
Ok, I gave the test refactoring a try based on our discussions with @Tlacenka. It's not perfect but much more entangles and smaller in rules. @matejchalk let me know if I can polish this version or if I can adopt it. If it is OK I would also try to generate the eslint files dynamically instead of having them in the fs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but the PR scope is too big. Refactoring the plugin-eslint
tests isn't necessary to update Nx. Please revert those changes and just run npx nx test plugin-eslint -u
to update the snapshot.
The fact that the tests failed after a major update isn't a bad thing, in my opinion. It gives us visibility into the impact of those changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The migrations.json
file shouldn't be committed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Also documented here:
https://nx.dev/core-features/automate-updating-dependencies#step-3-cleaning-up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just learned that it is not needed anymore
@matejchalk |
But why? 😅 The priorities are completely the opposite in my opinion. I'm not even convinced the ESLint tests need to be refactored (would be good to get @Tlacenka's opinion on this), and it surely isn't a blocker for updating Nx ( I honestly don't like having to decline your PRs, but when you decide to make big changes before first consulting it with us (e.g. on refinement), then I'm afraid it's gonna keep happening 😞 |
The I am unfortunately unable to determine which changes are truly necessary due to the updated Should the changes be done as a part of #255 , they should in my opinion be first investigated in detail and any targetted changes should be scoped and prioritised separately (otherwise the issue could get bloated easily), not as a part of this PR. |
This PR updates Nx packages. In addition to the new package versions a couple of refactoring's needed to be done to make it work.
Included changes:
nx-plugin
code due to changes of thenx.json
structureplugin-eslint
package due to dependency changesIncluded changes to discuss:
package-eslint