diff --git a/examples/apollo_server/package.json b/examples/apollo_server/package.json index 021ab92cd7..266fa29a1d 100644 --- a/examples/apollo_server/package.json +++ b/examples/apollo_server/package.json @@ -13,7 +13,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/async_await/package.json b/examples/async_await/package.json index 75fb136334..a4296227b1 100644 --- a/examples/async_await/package.json +++ b/examples/async_await/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/audio_and_video/package.json b/examples/audio_and_video/package.json index 56534835d5..62aed90408 100644 --- a/examples/audio_and_video/package.json +++ b/examples/audio_and_video/package.json @@ -13,7 +13,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "vite": "^5.0.12" } diff --git a/examples/audio_recorder/package.json b/examples/audio_recorder/package.json index c2d9f20374..837b2573fb 100644 --- a/examples/audio_recorder/package.json +++ b/examples/audio_recorder/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.3", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/autoreload/package.json b/examples/autoreload/package.json index a1e97484ff..38a4a03012 100644 --- a/examples/autoreload/package.json +++ b/examples/autoreload/package.json @@ -11,7 +11,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/basic_bitcoin/package.json b/examples/basic_bitcoin/package.json index 71519c5c35..1ba39bacf5 100644 --- a/examples/basic_bitcoin/package.json +++ b/examples/basic_bitcoin/package.json @@ -15,7 +15,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/bitcoin/package.json b/examples/bitcoin/package.json index 8fe5cb6f4f..d04ae2b9b8 100644 --- a/examples/bitcoin/package.json +++ b/examples/bitcoin/package.json @@ -15,7 +15,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/bitcoin_psbt/package.json b/examples/bitcoin_psbt/package.json index cc4e54d002..35ef90f81c 100644 --- a/examples/bitcoin_psbt/package.json +++ b/examples/bitcoin_psbt/package.json @@ -28,7 +28,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js b/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js index 63c8774d2b..c70c2b7a64 100644 --- a/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js +++ b/examples/bitcoin_psbt/scripts/bitcoin/transaction_count.js @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const { execSync } = require('child_process'); +import { execSync } from 'child_process'; const CLI = '.bitcoin/bin/bitcoin-cli -conf=$(pwd)/.bitcoin.conf'; diff --git a/examples/bitcoinjs_lib/package.json b/examples/bitcoinjs_lib/package.json index 559cae84e5..e947cdb47a 100644 --- a/examples/bitcoinjs_lib/package.json +++ b/examples/bitcoinjs_lib/package.json @@ -17,7 +17,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/bitcore_lib/package.json b/examples/bitcore_lib/package.json index 5fe0ecfb17..08aef3502f 100644 --- a/examples/bitcore_lib/package.json +++ b/examples/bitcore_lib/package.json @@ -14,7 +14,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/blob_array/package.json b/examples/blob_array/package.json index d300985ffb..6ed87c99cf 100644 --- a/examples/blob_array/package.json +++ b/examples/blob_array/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/bytes/package.json b/examples/bytes/package.json index 45e9cd9f44..5c2035f846 100644 --- a/examples/bytes/package.json +++ b/examples/bytes/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/call_raw/package.json b/examples/call_raw/package.json index 4455644354..321da7ed86 100644 --- a/examples/call_raw/package.json +++ b/examples/call_raw/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/candid_encoding/package.json b/examples/candid_encoding/package.json index 19584d74bc..b71ca754e6 100644 --- a/examples/candid_encoding/package.json +++ b/examples/candid_encoding/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/candid_keywords/package.json b/examples/candid_keywords/package.json index 5af1583fd0..4b0f41b486 100644 --- a/examples/candid_keywords/package.json +++ b/examples/candid_keywords/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/canister/package.json b/examples/canister/package.json index 07630197a9..2bf5565db0 100644 --- a/examples/canister/package.json +++ b/examples/canister/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.21.4", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ckbtc/package.json b/examples/ckbtc/package.json index e680e93b5f..7665894187 100644 --- a/examples/ckbtc/package.json +++ b/examples/ckbtc/package.json @@ -32,7 +32,7 @@ "@dfinity/identity": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/complex_init/package.json b/examples/complex_init/package.json index 5cf568163c..67ae616dd4 100644 --- a/examples/complex_init/package.json +++ b/examples/complex_init/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/complex_types/package.json b/examples/complex_types/package.json index 4aafba7f7b..d738384a92 100644 --- a/examples/complex_types/package.json +++ b/examples/complex_types/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/composite_queries/package.json b/examples/composite_queries/package.json index 5870d9de1f..8cf73a6308 100644 --- a/examples/composite_queries/package.json +++ b/examples/composite_queries/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/counter/package.json b/examples/counter/package.json index a4cedecfc9..e96e798e72 100644 --- a/examples/counter/package.json +++ b/examples/counter/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/cross_canister_calls/package.json b/examples/cross_canister_calls/package.json index 87a7cd54b3..8e8dfb6add 100644 --- a/examples/cross_canister_calls/package.json +++ b/examples/cross_canister_calls/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/cycles/package.json b/examples/cycles/package.json index dd7f768843..769dc8e23a 100644 --- a/examples/cycles/package.json +++ b/examples/cycles/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/date/package.json b/examples/date/package.json index b9f0513a35..5163028cde 100644 --- a/examples/date/package.json +++ b/examples/date/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ethereum_json_rpc/package.json b/examples/ethereum_json_rpc/package.json index bee75d3845..e0df673ecb 100644 --- a/examples/ethereum_json_rpc/package.json +++ b/examples/ethereum_json_rpc/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ethers/package.json b/examples/ethers/package.json index a8f30a3684..ccc4d02454 100644 --- a/examples/ethers/package.json +++ b/examples/ethers/package.json @@ -12,7 +12,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ethers_base/package.json b/examples/ethers_base/package.json index 8b728c3368..11c12b5880 100644 --- a/examples/ethers_base/package.json +++ b/examples/ethers_base/package.json @@ -12,7 +12,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/express/package.json b/examples/express/package.json index 8c141dabae..650799e70d 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -13,7 +13,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "vite": "^5.0.12" } diff --git a/examples/fetch_ic/package.json b/examples/fetch_ic/package.json index e1024ab811..7939397387 100644 --- a/examples/fetch_ic/package.json +++ b/examples/fetch_ic/package.json @@ -15,7 +15,7 @@ "jest": "^29.7.0", "puppeteer": "^22.2.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "vite": "^5.0.12" } diff --git a/examples/file_protocol/package.json b/examples/file_protocol/package.json index a1e97484ff..38a4a03012 100644 --- a/examples/file_protocol/package.json +++ b/examples/file_protocol/package.json @@ -11,7 +11,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/fs/package.json b/examples/fs/package.json index a1e97484ff..38a4a03012 100644 --- a/examples/fs/package.json +++ b/examples/fs/package.json @@ -11,7 +11,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/func_types/package.json b/examples/func_types/package.json index bbfd5481e9..f8e5c6ce04 100644 --- a/examples/func_types/package.json +++ b/examples/func_types/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/heartbeat/package.json b/examples/heartbeat/package.json index 0fe6fd8b26..59719464e9 100644 --- a/examples/heartbeat/package.json +++ b/examples/heartbeat/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/hello_world/package.json b/examples/hello_world/package.json index 9469e5de1e..3a29090704 100644 --- a/examples/hello_world/package.json +++ b/examples/hello_world/package.json @@ -13,7 +13,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "vite": "^5.0.12" } diff --git a/examples/http_outcall_fetch/package.json b/examples/http_outcall_fetch/package.json index a1e97484ff..38a4a03012 100644 --- a/examples/http_outcall_fetch/package.json +++ b/examples/http_outcall_fetch/package.json @@ -11,7 +11,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/hybrid_canister/package.json b/examples/hybrid_canister/package.json index a1e97484ff..38a4a03012 100644 --- a/examples/hybrid_canister/package.json +++ b/examples/hybrid_canister/package.json @@ -11,7 +11,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ic_api/package.json b/examples/ic_api/package.json index 26826688d0..f4f3eec876 100644 --- a/examples/ic_api/package.json +++ b/examples/ic_api/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ic_evm_rpc/package.json b/examples/ic_evm_rpc/package.json index 020dd96bc1..74205e4599 100644 --- a/examples/ic_evm_rpc/package.json +++ b/examples/ic_evm_rpc/package.json @@ -12,7 +12,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/icrc/package.json b/examples/icrc/package.json index 5336a4b106..c8b52f92d5 100644 --- a/examples/icrc/package.json +++ b/examples/icrc/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "0.14.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/imports/package.json b/examples/imports/package.json index 217d3b7c31..808cdb4b6b 100644 --- a/examples/imports/package.json +++ b/examples/imports/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/init/package.json b/examples/init/package.json index 691a3246b4..3b6ea851d2 100644 --- a/examples/init/package.json +++ b/examples/init/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^1.4.0", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/inspect_message/package.json b/examples/inspect_message/package.json index 1e4c62724d..2e7d8805f3 100644 --- a/examples/inspect_message/package.json +++ b/examples/inspect_message/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/internet_identity/package.json b/examples/internet_identity/package.json index 4241a6f3cf..4d409f0ebb 100644 --- a/examples/internet_identity/package.json +++ b/examples/internet_identity/package.json @@ -15,7 +15,7 @@ "jest": "^29.7.0", "puppeteer": "^22.2.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "vite": "^5.0.12" } diff --git a/examples/key_value_store/package.json b/examples/key_value_store/package.json index caf4c2aa02..d52227e3da 100644 --- a/examples/key_value_store/package.json +++ b/examples/key_value_store/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/large_files/package.json b/examples/large_files/package.json index ddae5f6707..22d0023800 100644 --- a/examples/large_files/package.json +++ b/examples/large_files/package.json @@ -12,7 +12,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/ledger_canister/package.json b/examples/ledger_canister/package.json index 137d8ff409..f76faebf1e 100644 --- a/examples/ledger_canister/package.json +++ b/examples/ledger_canister/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/list_of_lists/package.json b/examples/list_of_lists/package.json index b45a190555..81bd668371 100644 --- a/examples/list_of_lists/package.json +++ b/examples/list_of_lists/package.json @@ -12,7 +12,7 @@ "fast-equals": "^5.0.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/management_canister/package.json b/examples/management_canister/package.json index 6cc47b0f3e..fda89e6717 100644 --- a/examples/management_canister/package.json +++ b/examples/management_canister/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/manual_reply/package.json b/examples/manual_reply/package.json index 961bff7edc..3318542677 100644 --- a/examples/manual_reply/package.json +++ b/examples/manual_reply/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/calc/package.json b/examples/motoko_examples/calc/package.json index ce22e1681f..e183ad84c9 100644 --- a/examples/motoko_examples/calc/package.json +++ b/examples/motoko_examples/calc/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/counter/package.json b/examples/motoko_examples/counter/package.json index a4cedecfc9..e96e798e72 100644 --- a/examples/motoko_examples/counter/package.json +++ b/examples/motoko_examples/counter/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/echo/package.json b/examples/motoko_examples/echo/package.json index 7313e7e7e1..be7f44d020 100644 --- a/examples/motoko_examples/echo/package.json +++ b/examples/motoko_examples/echo/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/factorial/package.json b/examples/motoko_examples/factorial/package.json index 07da5126ba..efefa570c4 100644 --- a/examples/motoko_examples/factorial/package.json +++ b/examples/motoko_examples/factorial/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/hello-world/package.json b/examples/motoko_examples/hello-world/package.json index 6da82067f7..103337a708 100644 --- a/examples/motoko_examples/hello-world/package.json +++ b/examples/motoko_examples/hello-world/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/hello/package.json b/examples/motoko_examples/hello/package.json index 5259652049..a90d09971a 100644 --- a/examples/motoko_examples/hello/package.json +++ b/examples/motoko_examples/hello/package.json @@ -34,7 +34,7 @@ "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "util": "^0.12.0", "webpack": "^5.88.0", diff --git a/examples/motoko_examples/http_counter/package.json b/examples/motoko_examples/http_counter/package.json index 42ad57172f..7a943b5280 100644 --- a/examples/motoko_examples/http_counter/package.json +++ b/examples/motoko_examples/http_counter/package.json @@ -19,7 +19,7 @@ "@dfinity/agent": "^0.19.0", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/minimal-counter-dapp/package.json b/examples/motoko_examples/minimal-counter-dapp/package.json index a91ed2ea6e..014758395e 100644 --- a/examples/motoko_examples/minimal-counter-dapp/package.json +++ b/examples/motoko_examples/minimal-counter-dapp/package.json @@ -33,7 +33,7 @@ "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "util": "^0.12.0", "webpack": "^5.88.0", "webpack-cli": "^5.1.0", diff --git a/examples/motoko_examples/persistent-storage/package.json b/examples/motoko_examples/persistent-storage/package.json index b6c062a972..ea9fab0ce8 100644 --- a/examples/motoko_examples/persistent-storage/package.json +++ b/examples/motoko_examples/persistent-storage/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/phone-book/package.json b/examples/motoko_examples/phone-book/package.json index 47b1d367c1..058c37e6eb 100644 --- a/examples/motoko_examples/phone-book/package.json +++ b/examples/motoko_examples/phone-book/package.json @@ -26,7 +26,7 @@ "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", "ts-loader": "^9.4.0", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "util": "^0.12.0", "webpack": "^5.88.0", diff --git a/examples/motoko_examples/quicksort/package.json b/examples/motoko_examples/quicksort/package.json index e8dee47bc8..a50772071d 100644 --- a/examples/motoko_examples/quicksort/package.json +++ b/examples/motoko_examples/quicksort/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/simple-to-do/package.json b/examples/motoko_examples/simple-to-do/package.json index 8bf4a50dcc..ddb5b7376b 100644 --- a/examples/motoko_examples/simple-to-do/package.json +++ b/examples/motoko_examples/simple-to-do/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/superheroes/package.json b/examples/motoko_examples/superheroes/package.json index 6705034804..ed2aeb45cc 100644 --- a/examples/motoko_examples/superheroes/package.json +++ b/examples/motoko_examples/superheroes/package.json @@ -26,7 +26,7 @@ "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", "ts-loader": "^9.4.0", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "util": "^0.12.0", "webpack": "^5.88.0", diff --git a/examples/motoko_examples/threshold_ecdsa/package.json b/examples/motoko_examples/threshold_ecdsa/package.json index bbc3e42253..13a0b02568 100644 --- a/examples/motoko_examples/threshold_ecdsa/package.json +++ b/examples/motoko_examples/threshold_ecdsa/package.json @@ -13,7 +13,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/motoko_examples/whoami/package.json b/examples/motoko_examples/whoami/package.json index 4f55e6538c..99e868e4ac 100644 --- a/examples/motoko_examples/whoami/package.json +++ b/examples/motoko_examples/whoami/package.json @@ -13,7 +13,7 @@ "@dfinity/identity": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/nest/package.json b/examples/nest/package.json index abd4488ec8..c13fd0ff00 100644 --- a/examples/nest/package.json +++ b/examples/nest/package.json @@ -14,7 +14,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/new/package.json b/examples/new/package.json index b8b70ffd81..e4d4e7f3d4 100644 --- a/examples/new/package.json +++ b/examples/new/package.json @@ -8,7 +8,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/notify_raw/package.json b/examples/notify_raw/package.json index 77946e32d2..227a39bf3a 100644 --- a/examples/notify_raw/package.json +++ b/examples/notify_raw/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/null_example/package.json b/examples/null_example/package.json index f5c81917f2..e55719a66d 100644 --- a/examples/null_example/package.json +++ b/examples/null_example/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/open_value_sharing/package.json b/examples/open_value_sharing/package.json index 05543202c6..1ad668a7d4 100644 --- a/examples/open_value_sharing/package.json +++ b/examples/open_value_sharing/package.json @@ -11,7 +11,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/optional_types/package.json b/examples/optional_types/package.json index bbe20204a4..73c8a0d895 100644 --- a/examples/optional_types/package.json +++ b/examples/optional_types/package.json @@ -13,7 +13,7 @@ "jest": "^29.7.0", "node-fetch": "2.6.7", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/outgoing_http_requests/package.json b/examples/outgoing_http_requests/package.json index 80e3a4bc70..170fa629b9 100644 --- a/examples/outgoing_http_requests/package.json +++ b/examples/outgoing_http_requests/package.json @@ -13,7 +13,7 @@ "decode-utf8": "1.0.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "utf8-encoder": "1.0.1" } diff --git a/examples/plugins/package.json b/examples/plugins/package.json index 7911c0637b..ce8a4f50b0 100644 --- a/examples/plugins/package.json +++ b/examples/plugins/package.json @@ -10,7 +10,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/pre_and_post_upgrade/package.json b/examples/pre_and_post_upgrade/package.json index e014e1cb6f..710f1157e1 100644 --- a/examples/pre_and_post_upgrade/package.json +++ b/examples/pre_and_post_upgrade/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/primitive_ops/package.json b/examples/primitive_ops/package.json index 592c4bf5d3..c526812b5e 100644 --- a/examples/primitive_ops/package.json +++ b/examples/primitive_ops/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/primitive_types/package.json b/examples/primitive_types/package.json index c3495df087..45fadd33e6 100644 --- a/examples/primitive_types/package.json +++ b/examples/primitive_types/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/principal/package.json b/examples/principal/package.json index abfeba6710..3907214cbe 100644 --- a/examples/principal/package.json +++ b/examples/principal/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/query/package.json b/examples/query/package.json index ceb89e31fe..6057ee964b 100644 --- a/examples/query/package.json +++ b/examples/query/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/randomness/package.json b/examples/randomness/package.json index 15170cdcec..19db624fab 100644 --- a/examples/randomness/package.json +++ b/examples/randomness/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/recursion/package.json b/examples/recursion/package.json index e4dfccb171..02a431fd38 100644 --- a/examples/recursion/package.json +++ b/examples/recursion/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/rejections/package.json b/examples/rejections/package.json index 3ce1c2bc7a..3567a462ab 100644 --- a/examples/rejections/package.json +++ b/examples/rejections/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/robust_imports/package.json b/examples/robust_imports/package.json index 60015d7e27..e138677b40 100644 --- a/examples/robust_imports/package.json +++ b/examples/robust_imports/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.18.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/run_time_errors/package.json b/examples/run_time_errors/package.json index 94715e9ec3..5425bdee2d 100644 --- a/examples/run_time_errors/package.json +++ b/examples/run_time_errors/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/simple_erc20/package.json b/examples/simple_erc20/package.json index f17c871b17..e75316009f 100644 --- a/examples/simple_erc20/package.json +++ b/examples/simple_erc20/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/simple_user_accounts/package.json b/examples/simple_user_accounts/package.json index 4513dcd1f2..22b7c3a1bc 100644 --- a/examples/simple_user_accounts/package.json +++ b/examples/simple_user_accounts/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/sqlite/package.json b/examples/sqlite/package.json index 4c3ab71803..3b6a0ddaa4 100644 --- a/examples/sqlite/package.json +++ b/examples/sqlite/package.json @@ -14,7 +14,7 @@ "@types/sql.js": "^1.4.9", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/sqlite_drizzle/package.json b/examples/sqlite_drizzle/package.json index b655570ffb..8647c34b4f 100644 --- a/examples/sqlite_drizzle/package.json +++ b/examples/sqlite_drizzle/package.json @@ -15,7 +15,7 @@ "@types/sql.js": "^1.4.9", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/sqlite_typeorm/package.json b/examples/sqlite_typeorm/package.json index 7ff19c29c5..ae8bfe5e2b 100644 --- a/examples/sqlite_typeorm/package.json +++ b/examples/sqlite_typeorm/package.json @@ -15,7 +15,7 @@ "@types/sql.js": "^1.4.9", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/stable_b_tree_map_instruction_threshold/package.json b/examples/stable_b_tree_map_instruction_threshold/package.json index 683d7f3b9e..ae98dca048 100644 --- a/examples/stable_b_tree_map_instruction_threshold/package.json +++ b/examples/stable_b_tree_map_instruction_threshold/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/stable_memory/package.json b/examples/stable_memory/package.json index 17cb580d9c..bb785e0450 100644 --- a/examples/stable_memory/package.json +++ b/examples/stable_memory/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/stable_structures/package.json b/examples/stable_structures/package.json index 71b68c6859..de8f7fb565 100644 --- a/examples/stable_structures/package.json +++ b/examples/stable_structures/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/tfjs/package.json b/examples/tfjs/package.json index 652e4d0e0d..7c15db05bb 100644 --- a/examples/tfjs/package.json +++ b/examples/tfjs/package.json @@ -12,7 +12,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/timers/package.json b/examples/timers/package.json index dc9e7d1e72..34d1aad1af 100644 --- a/examples/timers/package.json +++ b/examples/timers/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/tuple_types/package.json b/examples/tuple_types/package.json index 3714313865..219c5a4276 100644 --- a/examples/tuple_types/package.json +++ b/examples/tuple_types/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/update/package.json b/examples/update/package.json index 1eec9f7e0a..117e209f50 100644 --- a/examples/update/package.json +++ b/examples/update/package.json @@ -11,7 +11,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/vanilla_js/package.json b/examples/vanilla_js/package.json index 9c1bc98c95..e5bcdc7d28 100644 --- a/examples/vanilla_js/package.json +++ b/examples/vanilla_js/package.json @@ -12,7 +12,7 @@ "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/examples/web_assembly/package.json b/examples/web_assembly/package.json index a79864b097..b79510434a 100644 --- a/examples/web_assembly/package.json +++ b/examples/web_assembly/package.json @@ -12,7 +12,7 @@ "@types/express": "^4.17.21", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/package-lock.json b/package-lock.json index 1e6ca913c7..fd82bab6c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,6 @@ "reflect-metadata": "^0.2.2", "repl": "^0.1.3", "text-encoding": "0.7.0", - "ts-node": "10.3.1", "tsx": "^4.15.7", "typescript": "^5.2.2", "uuid": "^9.0.1" @@ -684,6 +683,9 @@ "version": "0.8.0", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", + "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">= 12" } @@ -692,6 +694,9 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "dev": true, + "optional": true, + "peer": true, "dependencies": { "@cspotcode/source-map-consumer": "0.8.0" }, @@ -1799,6 +1804,7 @@ "version": "1.3.92", "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.92.tgz", "integrity": "sha512-vx0vUrf4YTEw59njOJ46Ha5i0cZTMYdRHQ7KXU29efN1MxcmJH2RajWLPlvQarOP1ab9iv9cApD7SMchDyx2vA==", + "dev": true, "hasInstallScript": true, "optional": true, "peer": true, @@ -1841,6 +1847,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -1857,6 +1864,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -1870,6 +1878,7 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.2.tgz", "integrity": "sha512-9F4ys4C74eSTEUNndnER3VJ15oru2NumfQxS8geE+f3eB5xvfxpWyqE5XlVnxb/R14uoXi6SLbBwwiDSkv+XEw==", + "dev": true, "optional": true, "peer": true }, @@ -1877,28 +1886,41 @@ "version": "0.1.5", "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.5.tgz", "integrity": "sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==", + "dev": true, "optional": true, "peer": true }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==" + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==" + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==" + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==" + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/@types/babel__core": { "version": "7.20.5", @@ -1999,6 +2021,7 @@ "version": "20.8.4", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.4.tgz", "integrity": "sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==", + "dev": true, "dependencies": { "undici-types": "~5.25.1" } @@ -2251,6 +2274,7 @@ "version": "8.10.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -2271,6 +2295,9 @@ "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=0.4.0" } @@ -2373,7 +2400,10 @@ "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/argparse": { "version": "2.0.1", @@ -3231,7 +3261,10 @@ "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/cross-spawn": { "version": "7.0.3", @@ -3402,6 +3435,9 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=0.3.1" } @@ -6410,7 +6446,10 @@ "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "optional": true, + "peer": true }, "node_modules/makeerror": { "version": "1.0.12", @@ -7889,6 +7928,9 @@ "version": "10.3.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.3.1.tgz", "integrity": "sha512-Yw3W2mYzhHfCHOICGNJqa0i+rbL0rAyg7ZIHxU+K4pgY8gd2Lh1j+XbHCusJMykbj6RZMJVOY0MlHVd+GOivcw==", + "dev": true, + "optional": true, + "peer": true, "dependencies": { "@cspotcode/source-map-support": "0.7.0", "@tsconfig/node10": "^1.0.7", @@ -8053,7 +8095,8 @@ "node_modules/undici-types": { "version": "5.25.3", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz", - "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==" + "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==", + "dev": true }, "node_modules/universalify": { "version": "2.0.1", @@ -8426,6 +8469,9 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=6" } diff --git a/package.json b/package.json index d8018fdc2a..5a7e89dff3 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "reflect-metadata": "^0.2.2", "repl": "^0.1.3", "text-encoding": "0.7.0", - "ts-node": "10.3.1", "tsx": "^4.15.7", "typescript": "^5.2.2", "uuid": "^9.0.1" diff --git a/property_tests/tests/blob/package.json b/property_tests/tests/blob/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/blob/package.json +++ b/property_tests/tests/blob/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/bool/package.json b/property_tests/tests/bool/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/bool/package.json +++ b/property_tests/tests/bool/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/http_request/package.json b/property_tests/tests/canister_methods/http_request/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/http_request/package.json +++ b/property_tests/tests/canister_methods/http_request/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/http_request_update/package.json b/property_tests/tests/canister_methods/http_request_update/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/http_request_update/package.json +++ b/property_tests/tests/canister_methods/http_request_update/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/init/package.json b/property_tests/tests/canister_methods/init/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/init/package.json +++ b/property_tests/tests/canister_methods/init/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/inspect_message/package.json b/property_tests/tests/canister_methods/inspect_message/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/inspect_message/package.json +++ b/property_tests/tests/canister_methods/inspect_message/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/post_upgrade/package.json b/property_tests/tests/canister_methods/post_upgrade/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/post_upgrade/package.json +++ b/property_tests/tests/canister_methods/post_upgrade/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/pre_upgrade/package.json b/property_tests/tests/canister_methods/pre_upgrade/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/pre_upgrade/package.json +++ b/property_tests/tests/canister_methods/pre_upgrade/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/query/package.json b/property_tests/tests/canister_methods/query/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/query/package.json +++ b/property_tests/tests/canister_methods/query/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/canister_methods/update/package.json b/property_tests/tests/canister_methods/update/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/canister_methods/update/package.json +++ b/property_tests/tests/canister_methods/update/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/float32/package.json b/property_tests/tests/float32/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/float32/package.json +++ b/property_tests/tests/float32/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/float64/package.json b/property_tests/tests/float64/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/float64/package.json +++ b/property_tests/tests/float64/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/func/package.json b/property_tests/tests/func/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/func/package.json +++ b/property_tests/tests/func/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/int/package.json b/property_tests/tests/int/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/int/package.json +++ b/property_tests/tests/int/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/int16/package.json b/property_tests/tests/int16/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/int16/package.json +++ b/property_tests/tests/int16/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/int32/package.json b/property_tests/tests/int32/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/int32/package.json +++ b/property_tests/tests/int32/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/int64/package.json b/property_tests/tests/int64/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/int64/package.json +++ b/property_tests/tests/int64/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/int8/package.json b/property_tests/tests/int8/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/int8/package.json +++ b/property_tests/tests/int8/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/nat/package.json b/property_tests/tests/nat/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/nat/package.json +++ b/property_tests/tests/nat/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/nat16/package.json b/property_tests/tests/nat16/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/nat16/package.json +++ b/property_tests/tests/nat16/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/nat32/package.json b/property_tests/tests/nat32/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/nat32/package.json +++ b/property_tests/tests/nat32/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/nat64/package.json b/property_tests/tests/nat64/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/nat64/package.json +++ b/property_tests/tests/nat64/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/nat8/package.json b/property_tests/tests/nat8/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/nat8/package.json +++ b/property_tests/tests/nat8/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/null/package.json b/property_tests/tests/null/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/null/package.json +++ b/property_tests/tests/null/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/opt/package.json b/property_tests/tests/opt/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/opt/package.json +++ b/property_tests/tests/opt/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/principal/package.json b/property_tests/tests/principal/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/principal/package.json +++ b/property_tests/tests/principal/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/record/package.json b/property_tests/tests/record/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/record/package.json +++ b/property_tests/tests/record/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/recursive/package.json b/property_tests/tests/recursive/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/recursive/package.json +++ b/property_tests/tests/recursive/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/service/package.json b/property_tests/tests/service/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/service/package.json +++ b/property_tests/tests/service/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/stable_b_tree_map/package.json b/property_tests/tests/stable_b_tree_map/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/stable_b_tree_map/package.json +++ b/property_tests/tests/stable_b_tree_map/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/text/package.json b/property_tests/tests/text/package.json index cf81a23da4..4786f00b6f 100644 --- a/property_tests/tests/text/package.json +++ b/property_tests/tests/text/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/tuple/package.json b/property_tests/tests/tuple/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/tuple/package.json +++ b/property_tests/tests/tuple/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/variant/package.json b/property_tests/tests/variant/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/variant/package.json +++ b/property_tests/tests/variant/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/property_tests/tests/vec/package.json b/property_tests/tests/vec/package.json index 563853c142..3e89063838 100644 --- a/property_tests/tests/vec/package.json +++ b/property_tests/tests/vec/package.json @@ -6,7 +6,7 @@ "azle": "0.22.0" }, "devDependencies": { - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/scripts/add_metadata_to_dfx_json.js b/scripts/add_metadata_to_dfx_json.js index c57db99d40..161944ac51 100644 --- a/scripts/add_metadata_to_dfx_json.js +++ b/scripts/add_metadata_to_dfx_json.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; const targetDirectory = process.argv[2] || '.'; // Use the provided directory or default to the current directory diff --git a/scripts/class_migration/add_example_dependency.js b/scripts/class_migration/add_example_dependency.js index 40e9681499..938fba84ad 100644 --- a/scripts/class_migration/add_example_dependency.js +++ b/scripts/class_migration/add_example_dependency.js @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Get the current directory name const currentDirectory = path.basename(process.cwd()); diff --git a/scripts/class_migration/change_to_custom_candid_gen.js b/scripts/class_migration/change_to_custom_candid_gen.js index 6ad5c038e0..6ae6d69dde 100644 --- a/scripts/class_migration/change_to_custom_candid_gen.js +++ b/scripts/class_migration/change_to_custom_candid_gen.js @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Path to the dfx.json file const dfxJsonPath = path.join(process.cwd(), 'dfx.json'); diff --git a/scripts/class_migration/clean_package.js b/scripts/class_migration/clean_package.js index 36ef773b86..3141c03213 100644 --- a/scripts/class_migration/clean_package.js +++ b/scripts/class_migration/clean_package.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Directories to be removed const directoriesToRemove = ['node_modules', '.azle', '.dfx']; diff --git a/scripts/class_migration/copy_generated_candid_from_example.js b/scripts/class_migration/copy_generated_candid_from_example.js index a33053aab8..2c5cf31cdc 100644 --- a/scripts/class_migration/copy_generated_candid_from_example.js +++ b/scripts/class_migration/copy_generated_candid_from_example.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Helper function to copy a file from src to dest const copyFile = (src, dest) => { diff --git a/scripts/class_migration/delete_tests_file.js b/scripts/class_migration/delete_tests_file.js index 5ff787b371..7dfa293f25 100644 --- a/scripts/class_migration/delete_tests_file.js +++ b/scripts/class_migration/delete_tests_file.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Path to the tests.ts file const testsFilePath = path.join(process.cwd(), 'test', 'tests.ts'); diff --git a/scripts/class_migration/do_all_packages.js b/scripts/class_migration/do_all_packages.js old mode 100644 new mode 100755 index 628371a31a..3b333303eb --- a/scripts/class_migration/do_all_packages.js +++ b/scripts/class_migration/do_all_packages.js @@ -1,9 +1,8 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const { exec } = require('child_process'); +#!/usr/bin/env node + +import { exec } from 'child_process'; +import * as fs from 'fs'; +import * as path from 'path'; // Get the current directory name const currentDirectory = process.cwd(); diff --git a/scripts/class_migration/modify_pretest.js b/scripts/class_migration/modify_pretest.js index ae2fdd2fe4..9164d69396 100644 --- a/scripts/class_migration/modify_pretest.js +++ b/scripts/class_migration/modify_pretest.js @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Path to the pretest.ts file const pretestFilePath = path.join(process.cwd(), 'test', 'pretest.ts'); diff --git a/scripts/class_migration/name_package.js b/scripts/class_migration/name_package.js index 165263306a..079f0ea294 100644 --- a/scripts/class_migration/name_package.js +++ b/scripts/class_migration/name_package.js @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Get the current directory name const currentDirectory = path.basename(process.cwd()); diff --git a/scripts/class_migration/update_test.js b/scripts/class_migration/update_test.js index 1f7c4903fd..62b0e3cac3 100644 --- a/scripts/class_migration/update_test.js +++ b/scripts/class_migration/update_test.js @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Get the current directory name const currentDirectory = path.basename(process.cwd()); diff --git a/scripts/class_migration/update_ts_config.js b/scripts/class_migration/update_ts_config.js index 274f7a8810..6f82a2c6b6 100644 --- a/scripts/class_migration/update_ts_config.js +++ b/scripts/class_migration/update_ts_config.js @@ -1,7 +1,5 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Path to the tsconfig.json file const tsconfigPath = path.join(process.cwd(), 'tsconfig.json'); diff --git a/scripts/class_migration/update_typescript.js b/scripts/class_migration/update_typescript.js index f96bc28999..73fa6cad87 100644 --- a/scripts/class_migration/update_typescript.js +++ b/scripts/class_migration/update_typescript.js @@ -1,9 +1,6 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const { exec } = require('child_process'); +import { exec } from 'child_process'; +import * as fs from 'fs'; +import * as path from 'path'; const tsVersion = '^5.2.2'; diff --git a/scripts/file_generator/bin.js b/scripts/file_generator/bin.js index 8c893f67a9..db2eb7f93a 100755 --- a/scripts/file_generator/bin.js +++ b/scripts/file_generator/bin.js @@ -1,12 +1,4 @@ #!/usr/bin/env node -// eslint-disable-next-line @typescript-eslint/no-var-requires -require('ts-node').register({ - transpileOnly: true, - ignore: [`node_modules/(?!azle)`], - compilerOptions: { - module: 'commonjs', - allowJs: true - } -}); -require('./main.ts'); +import 'tsx'; +import('./main.ts'); diff --git a/scripts/hash_file/bin.js b/scripts/hash_file/bin.js index 8c893f67a9..db2eb7f93a 100755 --- a/scripts/hash_file/bin.js +++ b/scripts/hash_file/bin.js @@ -1,12 +1,4 @@ #!/usr/bin/env node -// eslint-disable-next-line @typescript-eslint/no-var-requires -require('ts-node').register({ - transpileOnly: true, - ignore: [`node_modules/(?!azle)`], - compilerOptions: { - module: 'commonjs', - allowJs: true - } -}); -require('./main.ts'); +import 'tsx'; +import('./main.ts'); diff --git a/scripts/reorder_dfx_json.js b/scripts/reorder_dfx_json.js index 6f0e0fb54c..4d831a2ac8 100644 --- a/scripts/reorder_dfx_json.js +++ b/scripts/reorder_dfx_json.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs-extra'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs-extra'; +import * as path from 'path'; // Helper function to reorder keys in an object. const reorderKeys = (obj, order) => { diff --git a/scripts/simplify_tsconfig.js b/scripts/simplify_tsconfig.js index b1f2c8485b..caaba3d852 100644 --- a/scripts/simplify_tsconfig.js +++ b/scripts/simplify_tsconfig.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs-extra'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs-extra'; +import * as path from 'path'; // Read directory. const dirPath = './examples/motoko_examples'; // Replace with the path to the directory containing folders with tsconfig.json files diff --git a/scripts/tsx_migration/ts_node_to_tsx.js b/scripts/tsx_migration/ts_node_to_tsx.js new file mode 100644 index 0000000000..04a11ba2e7 --- /dev/null +++ b/scripts/tsx_migration/ts_node_to_tsx.js @@ -0,0 +1,76 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ + +import * as fs from 'fs'; +import * as path from 'path'; + +// Path to the package.json file +const packageJsonPath = path.join(process.cwd(), 'package.json'); + +// Helper function to sort an object by its keys +const sortObjectByKeys = (obj) => { + return Object.keys(obj) + .sort() + .reduce((result, key) => { + result[key] = obj[key]; + return result; + }, {}); +}; + +// Read and parse package.json +fs.readFile(packageJsonPath, 'utf8', (err, data) => { + if (err) { + console.error(`Error reading package.json file: ${err}`); + return; + } + + let packageJson; + try { + packageJson = JSON.parse(data); + } catch (parseErr) { + console.error(`Error parsing package.json: ${parseErr}`); + return; + } + + const tsxVersion = '^4.15.7'; + let tsNodeRemoved = false; + + // Check and update dependencies + if (packageJson.dependencies && packageJson.dependencies['ts-node']) { + delete packageJson.dependencies['ts-node']; + packageJson.dependencies['tsx'] = tsxVersion; + packageJson.dependencies = sortObjectByKeys(packageJson.dependencies); + tsNodeRemoved = true; + } + + // Check and update devDependencies + if (packageJson.devDependencies && packageJson.devDependencies['ts-node']) { + delete packageJson.devDependencies['ts-node']; + packageJson.devDependencies['tsx'] = tsxVersion; + packageJson.devDependencies = sortObjectByKeys( + packageJson.devDependencies + ); + tsNodeRemoved = true; + } + + if (!tsNodeRemoved) { + console.log('ts-node not found in dependencies or devDependencies.'); + return; + } + + // Write the updated package.json back to the file + fs.writeFile( + packageJsonPath, + JSON.stringify(packageJson, null, 2), + 'utf8', + (writeErr) => { + if (writeErr) { + console.error( + `Error writing updated package.json: ${writeErr}` + ); + return; + } + + console.log('package.json successfully updated.'); + } + ); +}); diff --git a/scripts/update_dfx_json_main.js b/scripts/update_dfx_json_main.js index 07bf0b9e23..8ebbcbf751 100644 --- a/scripts/update_dfx_json_main.js +++ b/scripts/update_dfx_json_main.js @@ -1,8 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-function-return-type */ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const fs = require('fs'); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); +import * as fs from 'fs'; +import * as path from 'path'; // Helper function to update the canister definition function updateCanister(canister) { diff --git a/tests/end_to_end/candid_rpc/class_syntax/async_await/package.json b/tests/end_to_end/candid_rpc/class_syntax/async_await/package.json index 4e0136107c..00cd8c48d2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/async_await/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/async_await/package.json @@ -11,7 +11,7 @@ "async_await_end_to_end_test_functional_syntax": "file:../../../../../examples/async_await", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json b/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json index 407ba044e4..85c1510b26 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/audio_recorder/package.json @@ -11,7 +11,7 @@ "audio_recorder_end_to_end_test_functional_syntax": "file:../../../../../examples/audio_recorder", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json b/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json index b754304291..c216487fa1 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/bitcoin/package.json @@ -12,10 +12,10 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", + "bitcoin_end_to_end_test_functional_syntax": "file:../../../../../examples/bitcoin", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", - "typescript": "5.2.2", - "bitcoin_end_to_end_test_functional_syntax": "file:../../../../../examples/bitcoin" + "tsx": "^4.15.7", + "typescript": "5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json b/tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json index 6b16b33d7f..01e723a226 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/blob_array/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "blob_array_end_to_end_test_functional_syntax": "file:../../../../../examples/blob_array", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "blob_array_end_to_end_test_functional_syntax": "file:../../../../../examples/blob_array" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/bytes/package.json b/tests/end_to_end/candid_rpc/class_syntax/bytes/package.json index ce061d6237..7a2b9dc505 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/bytes/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/bytes/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "bytes_end_to_end_test_functional_syntax": "file:../../../../../examples/bytes", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "bytes_end_to_end_test_functional_syntax": "file:../../../../../examples/bytes" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json b/tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json index e0e2bec9dd..4fe6e44a91 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/call_raw/package.json @@ -11,7 +11,7 @@ "call_raw_end_to_end_test_functional_syntax": "file:../../../../../examples/call_raw", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json b/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json index 3213b64ed1..e2538b35f2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/candid_encoding/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "candid_encoding_end_to_end_test_functional_syntax": "file:../../../../../examples/candid_encoding", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "candid_encoding_end_to_end_test_functional_syntax": "file:../../../../../examples/candid_encoding" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json b/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json index 8eb1e455ed..0c8c72d114 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/candid_keywords/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "0.19.2", + "candid_keywords_end_to_end_test_functional_syntax": "file:../../../../../examples/candid_keywords", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.9.0", - "typescript": "^5.2.2", - "candid_keywords_end_to_end_test_functional_syntax": "file:../../../../../examples/candid_keywords" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/canister/package.json b/tests/end_to_end/candid_rpc/class_syntax/canister/package.json index 3c7a9aa9c1..76ba75bb6a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/canister/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/canister/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.21.4", + "canister_end_to_end_test_functional_syntax": "file:../../../../../examples/canister", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", - "typescript": "^5.2.2", - "canister_end_to_end_test_functional_syntax": "file:../../../../../examples/canister" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/package.json b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/package.json index adf938c0b0..e7554f4e92 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ckbtc/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/ckbtc/package.json @@ -28,10 +28,10 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/identity": "^0.19.2", + "ckbtc_end_to_end_test_functional_syntax": "file:../../../../../examples/ckbtc", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "ckbtc_end_to_end_test_functional_syntax": "file:../../../../../examples/ckbtc" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json b/tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json index a45e957049..ff4813a605 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/complex_init/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "complex_init_end_to_end_test_functional_syntax": "file:../../../../../examples/complex_init", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "complex_init_end_to_end_test_functional_syntax": "file:../../../../../examples/complex_init" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json index 2ab8db48f7..4ee32c6037 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/complex_types/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", + "complex_types_end_to_end_test_functional_syntax": "file:../../../../../examples/complex_types", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", - "typescript": "^5.2.2", - "complex_types_end_to_end_test_functional_syntax": "file:../../../../../examples/complex_types" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json b/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json index fab288d44d..dce93ee975 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/composite_queries/package.json @@ -11,7 +11,7 @@ "composite_queries_end_to_end_test_functional_syntax": "file:../../../../../examples/composite_queries", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/counter/package.json b/tests/end_to_end/candid_rpc/class_syntax/counter/package.json index 0b49ca278f..9c02ec04dd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/counter/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/counter/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "counter_end_to_end_test_functional_syntax": "file:../../../../../examples/counter", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "counter_end_to_end_test_functional_syntax": "file:../../../../../examples/counter" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json index 10e1e970d1..48de40915b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/cross_canister_calls/package.json @@ -11,7 +11,7 @@ "cross_canister_calls_end_to_end_test_functional_syntax": "file:../../../../../examples/cross_canister_calls", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/cycles/package.json b/tests/end_to_end/candid_rpc/class_syntax/cycles/package.json index 12e71d3b7f..a9b69c4b93 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/cycles/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/cycles/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "cycles_end_to_end_test_functional_syntax": "file:../../../../../examples/cycles", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "cycles_end_to_end_test_functional_syntax": "file:../../../../../examples/cycles" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/date/package.json b/tests/end_to_end/candid_rpc/class_syntax/date/package.json index 66f3987e9e..951dc9f338 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/date/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/date/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "date_end_to_end_test_functional_syntax": "file:../../../../../examples/date", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "date_end_to_end_test_functional_syntax": "file:../../../../../examples/date" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json b/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json index 4bf72e1473..5af2a407bd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/ethereum_json_rpc/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "ethereum_json_rpc_end_to_end_test_functional_syntax": "file:../../../../../examples/ethereum_json_rpc", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "ethereum_json_rpc_end_to_end_test_functional_syntax": "file:../../../../../examples/ethereum_json_rpc" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/func_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/func_types/package.json index 7ab7445156..016cc09534 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/func_types/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/func_types/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "0.11.1", + "func_types_end_to_end_test_functional_syntax": "file:../../../../../examples/func_types", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "10.7.0", - "typescript": "^5.2.2", - "func_types_end_to_end_test_functional_syntax": "file:../../../../../examples/func_types" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json index 0c9144b648..13ed70e5fa 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/heartbeat/package.json @@ -11,7 +11,7 @@ "heartbeat_end_to_end_test_functional_syntax": "file:../../../../../examples/heartbeat", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json b/tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json index 3be8b8224e..d2e2c33f08 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/ic_api/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "ic_api_end_to_end_test_functional_syntax": "file:../../../../../examples/ic_api", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "ic_api_end_to_end_test_functional_syntax": "file:../../../../../examples/ic_api" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/icrc/package.json b/tests/end_to_end/candid_rpc/class_syntax/icrc/package.json index a1cbf918b9..2f6ad31f12 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/icrc/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/icrc/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "0.14.1", + "icrc_end_to_end_test_functional_syntax": "file:../../../../../examples/icrc", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", - "typescript": "^5.2.2", - "icrc_end_to_end_test_functional_syntax": "file:../../../../../examples/icrc" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/imports/package.json b/tests/end_to_end/candid_rpc/class_syntax/imports/package.json index 9911bbe365..c27bdaf6cd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/imports/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/imports/package.json @@ -9,10 +9,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "imports_end_to_end_test_functional_syntax": "file:../../../../../examples/imports", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "imports_end_to_end_test_functional_syntax": "file:../../../../../examples/imports" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/init/package.json b/tests/end_to_end/candid_rpc/class_syntax/init/package.json index b020e99c2d..c235ae88d4 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/init/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/init/package.json @@ -11,7 +11,7 @@ "init_end_to_end_test_functional_syntax": "file:../../../../../examples/init", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json b/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json index ceb3660ab0..459b00c80b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/inspect_message/package.json @@ -11,7 +11,7 @@ "inspect_message_end_to_end_test_functional_syntax": "file:../../../../../examples/inspect_message", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json b/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json index 8cd5a425fa..70941ba9c7 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/key_value_store/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "key_value_store_end_to_end_test_functional_syntax": "file:../../../../../examples/key_value_store", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json b/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json index bfb51cb568..4005644046 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/ledger_canister/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "ledger_canister_end_to_end_test_functional_syntax": "file:../../../../../examples/ledger_canister", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json b/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json index d51e273cd3..eb0c4f03bc 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/list_of_lists/package.json @@ -12,7 +12,7 @@ "jest": "^29.7.0", "list_of_lists_end_to_end_test_functional_syntax": "file:../../../../../examples/list_of_lists", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json b/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json index 6accf99b34..e39e871297 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/management_canister/package.json @@ -9,9 +9,9 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", + "management_canister_end_to_end_test_functional_syntax": "file:../../../../../examples/management_canister", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "management_canister_end_to_end_test_functional_syntax": "file:../../../../../examples/management_canister" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json b/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json index b2b5d7ba96..044e963c2d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/manual_reply/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "manual_reply_end_to_end_test_functional_syntax": "file:../../../../../examples/manual_reply", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json index 2f96056538..46e40cb1de 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/calc/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "calc_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/calc", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "calc_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/calc" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json index 86dfb39c39..10f65b011c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/counter/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "counter_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/counter", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "counter_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/counter" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json index b0b44095f0..7c2ce936db 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/echo/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "echo_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/echo", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "echo_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/echo" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json index 2915f07dbb..898250bf7a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/factorial/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "factorial_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/factorial", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "factorial_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/factorial" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json index cbce01de7b..ff658c4cdd 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello-world/package.json @@ -8,10 +8,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", + "hello-world_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/hello-world", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "hello-world_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/hello-world" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json index 0604d4abc3..68d326aa4c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/hello/package.json @@ -27,19 +27,19 @@ "buffer": "^6.0.3", "copy-webpack-plugin": "^11.0.0", "events": "^3.3.0", + "hello_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/hello", "html-webpack-plugin": "^5.5.0", "jest": "^29.7.0", "process": "^0.11.10", "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "util": "^0.12.0", "webpack": "^5.88.0", "webpack-cli": "^5.1.0", - "webpack-dev-server": "^4.15.0", - "hello_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/hello" + "webpack-dev-server": "^4.15.0" }, "browserslist": [ "last 2 chrome version", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json index 4fe9fb00cf..7f47864964 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/http_counter/package.json @@ -16,10 +16,10 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.0", + "http_counter_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/http_counter", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "http_counter_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/http_counter" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json index 8d93186e8a..93731e9242 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/minimal-counter-dapp/package.json @@ -28,16 +28,16 @@ "events": "^3.3.0", "html-webpack-plugin": "^5.5.0", "jest": "^29.7.0", + "minimal-counter-dapp_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/minimal-counter-dapp", "process": "^0.11.10", "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "util": "^0.12.0", "webpack": "^5.88.0", "webpack-cli": "^5.1.0", - "webpack-dev-server": "^4.15.0", - "minimal-counter-dapp_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/minimal-counter-dapp" + "webpack-dev-server": "^4.15.0" }, "browserslist": [ "last 2 chrome version", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json index 37a76f9ce5..96c7eeb5d0 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/persistent-storage/package.json @@ -9,9 +9,9 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", + "persistent-storage_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/persistent-storage", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "persistent-storage_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/persistent-storage" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json index 0306570da7..1f411fc757 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/phone-book/package.json @@ -19,19 +19,19 @@ "events": "^3.3.0", "html-webpack-plugin": "^5.5.0", "jest": "^29.7.0", + "phone-book_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/phone-book", "process": "^0.11.10", "stream-browserify": "^3.0.0", "style-loader": "^3.3.0", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", "ts-loader": "^9.4.0", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "util": "^0.12.0", "webpack": "^5.88.0", "webpack-cli": "^5.1.0", - "webpack-dev-server": "^4.15.0", - "phone-book_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/phone-book" + "webpack-dev-server": "^4.15.0" }, "browserslist": [ "last 2 chrome version", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json index fe6b27ab95..69552831f8 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/quicksort/package.json @@ -9,9 +9,9 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", + "quicksort_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/quicksort", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "quicksort_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/quicksort" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json index deedbe6a0c..14f583223b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/simple-to-do/package.json @@ -9,9 +9,9 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", + "simple-to-do_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/simple-to-do", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "simple-to-do_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/simple-to-do" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json index 3bb4749eda..bb8cb0352e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/superheroes/package.json @@ -22,16 +22,16 @@ "process": "^0.11.10", "stream-browserify": "^3.0.0", "style-loader": "^3.3.0", + "superheroes_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/superheroes", "terser-webpack-plugin": "^5.3.0", "ts-jest": "^29.1.4", "ts-loader": "^9.4.0", - "ts-node": "^10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "util": "^0.12.0", "webpack": "^5.88.0", "webpack-cli": "^5.1.0", - "webpack-dev-server": "^4.15.0", - "superheroes_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/superheroes" + "webpack-dev-server": "^4.15.0" }, "browserslist": [ "last 2 chrome version", diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json index 20e4505f5a..7c5582446f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/threshold_ecdsa/package.json @@ -10,9 +10,9 @@ "devDependencies": { "@dfinity/agent": "^0.19.2", "jest": "^29.7.0", + "threshold_ecdsa_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/threshold_ecdsa", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", - "typescript": "^5.2.2", - "threshold_ecdsa_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/threshold_ecdsa" + "tsx": "^4.15.7", + "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json index c9fa846581..394f3bf67f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/motoko_examples/whoami/package.json @@ -11,7 +11,7 @@ "@dfinity/identity": "^0.19.2", "jest": "^29.7.0", "ts-jest": "^29.1.4", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "whoami_end_to_end_test_functional_syntax": "file:../../../../../../examples/motoko_examples/whoami" } diff --git a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json index 6b0963c45b..56f099f396 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/notify_raw/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "notify_raw_end_to_end_test_functional_syntax": "file:../../../../../examples/notify_raw", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json b/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json index 517b08cb20..decbb863c7 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/null_example/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "null_example_end_to_end_test_functional_syntax": "file:../../../../../examples/null_example", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json index 7d45177f95..2655976515 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/optional_types/package.json @@ -13,7 +13,7 @@ "node-fetch": "2.6.7", "optional_types_end_to_end_test_functional_syntax": "file:../../../../../examples/optional_types", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json b/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json index a5a90029be..440087a29a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/outgoing_http_requests/package.json @@ -12,7 +12,7 @@ "jest": "^29.7.0", "outgoing_http_requests_end_to_end_test_functional_syntax": "file:../../../../../examples/outgoing_http_requests", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "utf8-encoder": "1.0.1" } diff --git a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json index e8206db3c3..100ac92149 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/pre_and_post_upgrade/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "pre_and_post_upgrade_end_to_end_test_functional_syntax": "file:../../../../../examples/pre_and_post_upgrade", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json index ca90f79f77..c90b9a244e 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/primitive_types/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "primitive_types_end_to_end_test_functional_syntax": "file:../../../../../examples/primitive_types", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/principal/package.json b/tests/end_to_end/candid_rpc/class_syntax/principal/package.json index 96f6d8aa36..ae1b8f562f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/principal/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/principal/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "principal_end_to_end_test_functional_syntax": "file:../../../../../examples/principal", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/query/package.json b/tests/end_to_end/candid_rpc/class_syntax/query/package.json index 40590dd746..e418b6fbdf 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/query/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/query/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "query_end_to_end_test_functional_syntax": "file:../../../../../examples/query", "ts-jest": "^29.1.5", - "ts-node": "10.9.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json b/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json index 9de7e1276d..3d7777ad0a 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/randomness/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "randomness_end_to_end_test_functional_syntax": "file:../../../../../examples/randomness", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/recursion/package.json b/tests/end_to_end/candid_rpc/class_syntax/recursion/package.json index 328096dac6..12f04c117f 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/recursion/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/recursion/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "recursion_end_to_end_test_functional_syntax": "file:../../../../../examples/recursion", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json b/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json index 279df38678..1d39cad825 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/rejections/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "rejections_end_to_end_test_functional_syntax": "file:../../../../../examples/rejections", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json b/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json index 25c59c4b99..cc8e8e8e2c 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/simple_erc20/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "simple_erc20_end_to_end_test_functional_syntax": "file:../../../../../examples/simple_erc20", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json b/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json index 290d34614b..9344009e17 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/simple_user_accounts/package.json @@ -12,7 +12,7 @@ "jest": "^29.7.0", "simple_user_accounts_end_to_end_test_functional_syntax": "file:../../../../../examples/simple_user_accounts", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json b/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json index 1eeee93b52..6aaf5df514 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/stable_b_tree_map_instruction_threshold/package.json @@ -12,7 +12,7 @@ "jest": "^29.7.0", "stable_b_tree_map_instruction_threshold_end_to_end_test_functional_syntax": "file:../../../../../examples/stable_b_tree_map_instruction_threshold", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_memory/package.json b/tests/end_to_end/candid_rpc/class_syntax/stable_memory/package.json index 38021dcb56..582017979d 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_memory/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/stable_memory/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "stable_memory_end_to_end_test_functional_syntax": "file:../../../../../examples/stable_memory", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json b/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json index ac1c9dafc1..a768a8dae9 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/stable_structures/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "stable_structures_end_to_end_test_functional_syntax": "file:../../../../../examples/stable_structures", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/timers/package.json b/tests/end_to_end/candid_rpc/class_syntax/timers/package.json index 6ec71ecf6b..c2b1f3485b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/timers/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/timers/package.json @@ -11,7 +11,7 @@ "jest": "^29.7.0", "timers_end_to_end_test_functional_syntax": "file:../../../../../examples/timers", "ts-jest": "^29.1.5", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2" } } diff --git a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json b/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json index 609d79cb79..16298a8c44 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/tuple_types/package.json @@ -10,7 +10,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "tuple_types_end_to_end_test_functional_syntax": "file:../../../../../examples/tuple_types", "typescript": "^5.2.2" } diff --git a/tests/end_to_end/candid_rpc/class_syntax/update/package.json b/tests/end_to_end/candid_rpc/class_syntax/update/package.json index ba63f5d1df..dc1f457d6b 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/update/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/update/package.json @@ -10,7 +10,7 @@ "@dfinity/agent": "0.11.1", "jest": "^29.7.0", "ts-jest": "^29.1.5", - "ts-node": "10.7.0", + "tsx": "^4.15.7", "typescript": "^5.2.2", "update_end_to_end_test_functional_syntax": "file:../../../../../examples/update" } diff --git a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json b/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json index bd0df74115..e3eb19f5a2 100644 --- a/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json +++ b/tests/end_to_end/candid_rpc/class_syntax/vanilla_js/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@dfinity/agent": "^0.19.2", - "ts-node": "^10.9.1", + "tsx": "^4.15.7", "typescript": "^5.2.2", "vanilla_js_end_to_end_test_functional_syntax": "file:../../../../../examples/vanilla_js" }