Skip to content

Conversation

@VitaliyR
Copy link
Contributor

@VitaliyR VitaliyR commented Oct 27, 2025

🎉 Thanks for submitting a pull request! 🎉

Summary

  • Tools uses 24 node now
  • Add tests for 24 node
  • Fix running e2e locally on mac

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@github-actions
Copy link

github-actions bot commented Oct 27, 2025

📊 Benchmark results

Comparing with 31b1e09

  • Dependency count: 1,130 ⬆️ 5.84% increase vs. 31b1e09
  • Package size: 321 MB ⬆️ 0.01% increase vs. 31b1e09
  • Number of ts-expect-error directives: 379 (no change)


// Captures `pnpx netlify ...`
if (pkgFromUserAgent(npm_config_user_agent) === 'pnpm' && npm_command === 'run-script') {
if (pkgFromUserAgent(npm_config_user_agent) === 'pnpm' && ['run-script', 'run'].includes(npm_command ?? '')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

in node 24 on unix this has changed, and pnpm sets npm_command to run instead

// At this point, the project is built. As long as we limit the prepublish script to built-
// ins, node_modules are not be necessary to publish the package.
filter: isNotNodeModules,
filter: copyFilter,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

when run locally on mac os sometimes it tries to copy a socket-file which crashes the test, added a function which makes sure to skip it

@VitaliyR VitaliyR marked this pull request as ready for review October 28, 2025 16:20
@VitaliyR VitaliyR requested a review from a team as a code owner October 28, 2025 16:20
@VitaliyR VitaliyR requested a review from serhalp October 28, 2025 16:22
Copy link
Member

@serhalp serhalp left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

const isNodeModules = picomatch('**/node_modules/**')
const isNotNodeModules = (target: string) => !isNodeModules(target)
const isNodeModules = picomatch('**/node_modules/**', { dot: true })
const copyFilter = async (src: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

nit: copyFilter doesn't express the intent of this function, at least to me. it sounds like it copies a filter!

Suggested change
const copyFilter = async (src: string) => {
const shouldCopyCLIFile = async (src: string) => {

os: [ubuntu-latest, macOS-latest, windows-2025]
# Pinning 20.x version as a temporary workaround due to this https://github.com/nodejs/node/issues/52884
node-version: ['20.12.2', '22']
node-version: ['20.12.2', '22', '24']
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: can we delete the copy-pasted integration-win-node-23 job in this file now? 🙏🏼

matrix:
os: [ubuntu-latest, macOS-latest, windows-2025]
node-version: ['20.12.2', '22.x']
node-version: ['20.12.2', '22.x', '24']
Copy link
Member

Choose a reason for hiding this comment

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

💭 Don't forget to mark the new e2e + integration + unit v24 CI jobs as required when you merge!

@VitaliyR VitaliyR merged commit a71a0ba into main Oct 29, 2025
109 of 113 checks passed
@VitaliyR VitaliyR deleted the vitaliir/EX-1077 branch October 29, 2025 12:15
VaibhavAcharya pushed a commit that referenced this pull request Oct 30, 2025
* feat: update node version to 24

* fix: fix pnpm on node 24 and running e2e test locally on unix

* chore: remove node 23 win test and keep node 22 win test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants