Skip to content

Commit 603ab36

Browse files
Merge pull request #6775 from BitGo/WP-5599/fix-node-22-ci-2
fix: update tests for node 22.18.0
2 parents c297acd + cf375c7 commit 603ab36

File tree

231 files changed

+1153
-845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+1153
-845
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
rm -rfd ./modules/web-demo
5555
rm -rfd ./modules/express
56-
npx ts-node ./scripts/prepare-release.ts ${{ env.preid }}
56+
npx tsx ./scripts/prepare-release.ts ${{ env.preid }}
5757
5858
- name: Rebuild packages
5959
run: yarn
@@ -65,4 +65,4 @@ jobs:
6565
run: yarn lerna publish from-package --preid ${{ env.preid }} --dist-tag ${{ env.preid }} --force-publish --yes --loglevel silly
6666

6767
- name: Verify Publish
68-
run: npx ts-node ./scripts/verify-release.ts ${{ env.preid }}
68+
run: npx tsx ./scripts/verify-release.ts ${{ env.preid }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ modules/**/dist/
1717
modules/**/pack-scoped/
1818
coverage
1919
/.direnv/
20+
.claude/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.16.0
1+
22.18.0

CLAUDE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ yarn lint-changed
2828

2929
# Fix linting issues
3030
yarn lint-fix
31+
32+
# Commit lint
33+
yarn check-commits
3134
```
3235

3336
### Testing
@@ -62,6 +65,10 @@ yarn compile
6265
# Build for development
6366
yarn compile-dbg
6467
```
68+
## Code Style
69+
70+
### Commits
71+
BitGoJS uses conventional commits. All commits MUST pass the spec described in `commitlint.config.js`.
6572

6673
## Code Architecture
6774

@@ -113,4 +120,4 @@ This will generate the necessary boilerplate for a new coin implementation.
113120

114121
## Node.js Version Support
115122

116-
BitGoJS supports Node.js versions >=18 and <23, with NPM >=3.10.10.
123+
BitGoJS supports Node.js versions >=18 and <23, with NPM >=3.10.10.

examples/docs/get-fee-estimate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ This script, when run, will log a transaction hex. You can then pass this value
2323

2424
First, run `yarn install` from the root directory of the repository.
2525

26-
Then change into the `examples/ts/sui` directory and use `npx ts-node` to run it:
26+
Then change into the `examples/ts/sui` directory and use `npx tsx` to run it:
2727

2828
```
2929
$ cd examples/ts/sui/
30-
$ npx ts-node get-transaction-hex.ts
30+
$ npx tsx get-transaction-hex.ts
3131
```
3232

3333
### Note

examples/docs/multiple-recipients-transfer-for-non-erc20-tokens.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ TESTNET_ACCESS_TOKEN=your_access_token_here
1616

1717
First, run `yarn install` from the root directory of the repository.
1818

19-
Then change into the `examples/ts/sol/utils/nonce-account-creation` directory and use `npx ts-node` to run the desired example:
19+
Then change into the `examples/ts/sol/utils/nonce-account-creation` directory and use `npx tsx` to run the desired example:
2020

2121
```
2222
$ cd examples/ts/sol/utils/nonce-account-creation
23-
$ npx ts-node multi-recipient-pay-transaction.ts
23+
$ npx tsx multi-recipient-pay-transaction.ts
2424
```
2525

2626

examples/ts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ You will need node and npm installed locally. You can find information on how to
88

99
First, run `yarn install` from the root directory of the repository.
1010

11-
Then change into the `examples/ts` directory and use `npx ts-node` to run the desired example:
11+
Then change into the `examples/ts` directory and use `npx tsx` to run the desired example:
1212

1313
```
1414
$ cd examples/ts
15-
$ npx ts-node get-wallet.ts
15+
$ npx tsx get-wallet.ts
1616
```
1717

1818
Copy `.env.example` to `.env` and provide the given values if you would like to use the same variables for multiple examples.

examples/ts/btc/changeAddress/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function getWallet() {
1616
}
1717

1818
/*
19-
* Usage: npx ts-node btc/externalChange/index.ts
19+
* Usage: npx tsx btc/externalChange/index.ts
2020
* */
2121
async function main() {
2222
console.log('Starting...');

examples/ts/btc/legacySafe/recover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { unspents } from './fixtures/unspents';
55
const destination = '2MyGxrhLC4kRfuVjLqCVYFtC7DchhgMCiNz';
66

77
/*
8-
* Usage: npx ts-node btc/legacySafe/recover.ts
8+
* Usage: npx tsx btc/legacySafe/recover.ts
99
* */
1010
const recoveryTransaction = async () => {
1111
const coin = legacySafeConfig.sdk.coin(legacySafeConfig.coin) as AbstractUtxoCoin;

examples/ts/btc/legacySafe/sweep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { unspents } from './fixtures/unspents';
55
const destination = '2MyGxrhLC4kRfuVjLqCVYFtC7DchhgMCiNz';
66

77
/*
8-
* Usage: npx ts-node btc/legacySafe/sweep.ts
8+
* Usage: npx tsx btc/legacySafe/sweep.ts
99
* */
1010
const sweepTransaction = async () => {
1111
const coin = legacySafeConfig.sdk.coin(legacySafeConfig.coin) as AbstractUtxoCoin;

0 commit comments

Comments
 (0)