| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
All scripts in `pr-checks` are run with Node24
There was a problem hiding this comment.
The migration consistently updates module configuration, entry-point detection, paths, dependencies, tests, and workflow references.
Review effort: Balanced
Findings: None
Migrates the independent pr-checks tooling from CommonJS to ESM while retaining tsx execution in CI and local development.
Changes:
| File | Description |
|---|---|
| .github/workflows/pr-checks.yml | Uses the renamed changenotes script. |
| eslint.config.mjs | Removes obsolete .mts patterns. |
| package-lock.json | Locks updated Node.js type dependencies. |
| pr-checks/.nvmrc | Selects Node.js 24. |
| pr-checks/bundle-changelog.ts | Uses the ESM main-module check. |
| pr-checks/bundle-metadata.ts | Uses the ESM main-module check. |
| pr-checks/changelog/validate.test.ts | Imports the renamed validator. |
| pr-checks/changelog/validate.ts | Converts the validator to TypeScript ESM. |
| pr-checks/changenotes.ts | Updates validator imports and usage text. |
| pr-checks/check-repo-size.ts | Uses the ESM main-module check. |
| pr-checks/config.ts | Derives filesystem paths from import.meta.url. |
| pr-checks/package.json | Enables ESM and Node.js 24 typings. |
| pr-checks/prepare-changelog.ts | Uses the ESM main-module check. |
| pr-checks/release-branches.ts | Uses the ESM main-module check. |
| pr-checks/rollback-changelog.ts | Uses the ESM main-module check. |
| pr-checks/sync-back.ts | Uses shared ESM-safe paths and entry detection. |
| pr-checks/sync-checks.ts | Uses the ESM main-module check. |
| pr-checks/sync.ts | Uses shared ESM-safe repository paths. |
| pr-checks/tsconfig.json | Removes obsolete .mts inclusion. |
| pr-checks/update-ghes-versions.ts | Uses the ESM main-module check. |
| pr-checks/update-release-branch.ts | Uses the ESM main-module check. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. Thanks!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The scripts in pr-checks are independent of the main codebase and are run in CI (or locally) using npx. All CI workflows that use scripts from pr-checks install Node24. We recently moved some of the scripts over to ESM, but kept CJS by default. This PR migrates the entire pr-checks project to ESM.
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Environments:
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist