Skip to content

Conversation

@todalavibra
Copy link

The entrypoint script src/index.ts was missing a check for Node.js version 21. Although the package.json engines field specifies supported versions, this check provides a more user-friendly error message.

This change adds a condition to exit with an error if the major version of Node.js is 21, consistent with other version checks in the file.

A new test file, tests/version.test.ts, is added to verify this behavior in isolation, ensuring that the script exits as expected when an unsupported version is used.

The entrypoint script `src/index.ts` was missing a check for Node.js version 21. Although the `package.json` `engines` field specifies supported versions, this check provides a more user-friendly error message.

This change adds a condition to exit with an error if the major version of Node.js is 21, consistent with other version checks in the file.

A new test file, `tests/version.test.ts`, is added to verify this behavior in isolation, ensuring that the script exits as expected when an unsupported version is used.
@google-cla
Copy link

google-cla bot commented Oct 4, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@todalavibra todalavibra closed this Oct 4, 2025
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.

1 participant