Skip to content

chore: update to nx 20 #10128

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

Merged
merged 4 commits into from
Oct 14, 2024
Merged

chore: update to nx 20 #10128

merged 4 commits into from
Oct 14, 2024

Conversation

JamesHenry
Copy link
Member

@JamesHenry JamesHenry commented Oct 10, 2024

No description provided.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @JamesHenry!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit e8b724e
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/670d7b68385f0700081fb176
😎 Deploy Preview https://deploy-preview-10128--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🟢 up 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -3,7 +3,6 @@
"nxCloudAccessToken": "YjIzMmMxMWItMjhiMS00NWY2LTk1NWYtYWU3YWQ0YjE4YjBlfHJlYWQ=",
"release": {
"projects": [
"*",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer needed, we can use a list of only negative matchers and the ALL EXCEPT is implied

Copy link

nx-cloud bot commented Oct 10, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e8b724e. 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 2 targets

Sent with 💌 from NxCloud.


// Append our custom messaging to the generated changelog entry
return `${defaultChangelog}\n\nYou can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.`;
module.exports = class CustomChangelogRenderer extends (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog renderer API is now class based where individual elements of the render can be easily patched by overwriting base methods. In our case we are just bolting text onto the full default render, so we only need to amend the main render() method.

@@ -59,9 +59,13 @@ if (workspaceVersion === null) {
process.exit(0);
}

const publishStatus = await releasePublish({
const publishProjectsResult = await releasePublish({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

releasePublish now always returns a mapping of project names to data (which right now only contains exit codes), rather than one simplistic exit code for the whole set of projects

@@ -1,9 +1,9 @@
'use strict';

// @ts-check
const { getJestProjects } = require('@nx/jest');
const { getJestProjectsAsync } = require('@nx/jest');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting flashbacks to C#/.NET 😛

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sync version is only deprecated and still there so sadly we have to have another name for this one!

@JamesHenry JamesHenry marked this pull request as ready for review October 10, 2024 23:34
knip.ts Outdated
@@ -1,5 +1,6 @@
import type { KnipConfig } from 'knip' with { 'resolution-mode': 'import' };

// eslint-disable-next-line import/no-default-export
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, I fixed this in #9848 too - by just excluding knip.ts from import/no-default-export... let me merge that now.

@@ -178,6 +178,7 @@ module.exports = config(
);
```
*/
// eslint-disable-next-line import/no-default-export
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with #9848 here

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍰

@JoshuaKGoldberg JoshuaKGoldberg added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Oct 14, 2024
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.14%. Comparing base (ef5df2f) to head (e8b724e).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10128      +/-   ##
==========================================
+ Coverage   86.09%   86.14%   +0.04%     
==========================================
  Files         428      428              
  Lines       14969    14981      +12     
  Branches     4343     4344       +1     
==========================================
+ Hits        12888    12905      +17     
+ Misses       1734     1730       -4     
+ Partials      347      346       -1     
Flag Coverage Δ
unittest 86.14% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 5 files with indirect coverage changes

@JoshuaKGoldberg JoshuaKGoldberg merged commit 0405eb2 into main Oct 14, 2024
63 of 64 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the nx-20 branch October 14, 2024 22:07
@abrahamguo abrahamguo mentioned this pull request Oct 18, 2024
4 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants