refactor(deps): migrate ts-node from v8.0.3 to v10.9.2#4109
Closed
s0wa48 wants to merge 1 commit intobitpay:masterfrom
Closed
refactor(deps): migrate ts-node from v8.0.3 to v10.9.2#4109s0wa48 wants to merge 1 commit intobitpay:masterfrom
s0wa48 wants to merge 1 commit intobitpay:masterfrom
Conversation
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.
Changes
Dependency version bump
ts-nodefrom^8.0.3to^10.9.2inpackage.jsonBreaking changes addressed
ESM loader entrypoint (v8 → v10)
packages/bitcore-wallet-service/scripts/preview-email.js, the file uses ESMimportsyntax. 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.ts-node/esm(used via--loader ts-node/esmor as an import). The oldts-node/registerhook targets CommonJS and is not appropriate for ESM-style files.import 'ts-node/register'→import 'ts-node/esm'to align with the v10 ESM loader API.Other notable ts-node v10 improvements
tsconfig.jsonfile not found on latest TypeScript versions (the primary fix in v10.9.2).--esmflag introduced in v10.transpileOnlyoption andswctranspiler support added in v10 for faster compilation.--projectflag now correctly resolvestsconfig.jsonpaths relative to the working directory.This PR was auto-generated by Gittensor upgrade bot using Claude AI