Modernize program-boilerplate#509
Open
Jayden Chan (jayden-chan) wants to merge 5 commits into
Open
Conversation
* Updated minimum supported Node version to 24 * Updated to TypeScript 6 * Updated to bson-objectid 2 * Removed jest, ts-jest & jest-cucumber in favor of native Node test runner * Removed typedoc (was unused) * Removed source-map * Removed prettier (install from dev environment) * Removed ts-node as Node can run TypeScript natively * Updated all dependencies * Converted package to ESM
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modernizes packages/program-boilerplate for Node 24+, TypeScript 6, ESM output, and the native Node test runner, aligning it with the newer boilerplate package modernization pattern.
Changes:
- Converts the package to ESM with NodeNext TypeScript settings and explicit
.tssource imports. - Updates dependencies and replaces Jest-based tests with
node:test/node:assert. - Removes Jest configuration and legacy tooling scripts/dependencies.
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
packages/program-boilerplate/package.json |
Updates engines, dependencies, scripts, and enables ESM package mode. |
packages/program-boilerplate/tsconfig.json |
Adds Node 24/TypeScript 6 compiler configuration. |
packages/program-boilerplate/jest.config.ts |
Removes obsolete Jest configuration. |
packages/program-boilerplate/src/index.ts |
Updates imports/exports for ESM and adjusts runtime setup syntax. |
packages/program-boilerplate/src/conversion.ts |
Updates imports and index-signature-safe field access. |
packages/program-boilerplate/src/jsonata.ts |
Updates import ordering and formatting for new compiler settings. |
packages/program-boilerplate/src/logger.ts |
Converts logger import typing to TypeScript 6-compatible syntax. |
packages/program-boilerplate/src/transaction.ts |
Updates imports and ObjectID generation for dependency changes. |
packages/program-boilerplate/src/trigger.ts |
Updates imports and type-only usage for ESM/NodeNext. |
packages/program-boilerplate/src/utils.ts |
Updates imports and JSONata paths extractor interop usage. |
packages/program-boilerplate/src/types/index.ts |
Updates type namespace imports to explicit .ts paths. |
packages/program-boilerplate/src/types/rpc.ts |
Updates schema/type imports for NodeNext resolution. |
packages/program-boilerplate/__tests__/jsonata.test.ts |
Migrates JSONata tests to node:test. |
packages/program-boilerplate/__tests__/logger.test.ts |
Migrates logger tests to node:test. |
packages/program-boilerplate/__tests__/transaction.test.ts |
Migrates transaction tests to node:test. |
packages/program-boilerplate/__tests__/trigger.test.ts |
Migrates trigger tests and mocks to node:test. |
packages/program-boilerplate/__tests__/utils.test.ts |
Migrates utility tests to node:test. |
packages/program-boilerplate/__tests__/webtask.test.ts |
Migrates webtask tests to node:test. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This commit was generated by GitHub Actions CI
This commit was generated by GitHub Actions CI
Copilot stopped reviewing on behalf of
Jayden Chan (jayden-chan) due to an error
May 28, 2026 19:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the change
Type of change
Checklists
Development
Paperwork
Code review