Skip to content

refactor(deps): migrate ts-node from v8.0.3 to v10.9.2#4109

Closed
s0wa48 wants to merge 1 commit intobitpay:masterfrom
s0wa48:deps/upgrade-ts-node-10.9.2
Closed

refactor(deps): migrate ts-node from v8.0.3 to v10.9.2#4109
s0wa48 wants to merge 1 commit intobitpay:masterfrom
s0wa48:deps/upgrade-ts-node-10.9.2

Conversation

@s0wa48
Copy link

@s0wa48 s0wa48 commented Feb 18, 2026

Changes

Dependency version bump

  • Updated ts-node from ^8.0.3 to ^10.9.2 in package.json

Breaking changes addressed

ESM loader entrypoint (v8 → v10)

  • In packages/bitcore-wallet-service/scripts/preview-email.js, the file uses ESM import syntax. Under ts-node v8, import 'ts-node/register' was used as a side-effect import to hook into Node's module loading for TypeScript files.
  • In ts-node v10, the correct ESM loader entrypoint is ts-node/esm (used via --loader ts-node/esm or as an import). The old ts-node/register hook targets CommonJS and is not appropriate for ESM-style files.
  • Updated the registration import from import 'ts-node/register'import 'ts-node/esm' to align with the v10 ESM loader API.

Other notable ts-node v10 improvements

  • Fixed tsconfig.json file not found on latest TypeScript versions (the primary fix in v10.9.2).
  • Improved ESM support and --esm flag introduced in v10.
  • transpileOnly option and swc transpiler support added in v10 for faster compilation.
  • The --project flag now correctly resolves tsconfig.json paths relative to the working directory.

This PR was auto-generated by Gittensor upgrade bot using Claude AI

@s0wa48 s0wa48 closed this Feb 18, 2026
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

Comments