diff --git a/.github/workflows/forkless-update-data.yml b/.github/workflows/forkless-update-data.yml index 1f6692e468..f0b321a653 100644 --- a/.github/workflows/forkless-update-data.yml +++ b/.github/workflows/forkless-update-data.yml @@ -152,7 +152,7 @@ jobs: yarn ../scripts/wait_for_first_block.sh echo "Executing upgrade" - yarn ts-node-esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm + yarn ts-node --esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm env: RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }} diff --git a/.github/workflows/forkless-update-nodata.yml b/.github/workflows/forkless-update-nodata.yml index 1b1b9b4ea7..336fa6feb3 100644 --- a/.github/workflows/forkless-update-nodata.yml +++ b/.github/workflows/forkless-update-nodata.yml @@ -167,7 +167,7 @@ jobs: yarn ../scripts/wait_for_first_block.sh echo "Executing upgrade" - yarn ts-node-esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm + yarn ts-node --esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm env: RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }} diff --git a/.github/workflows/make-bench.yml b/.github/workflows/make-bench.yml index 8331c6d9d8..4b52fa362e 100644 --- a/.github/workflows/make-bench.yml +++ b/.github/workflows/make-bench.yml @@ -50,8 +50,8 @@ jobs: working-directory: js-packages/scripts run: | yarn - yarn ts-node-esm calibrate.ts - yarn ts-node-esm calibrateApply.ts + yarn ts-node --esm calibrate.ts + yarn ts-node --esm calibrateApply.ts - name: show git diff run: | diff --git a/.github/workflows/xcm.yml b/.github/workflows/xcm.yml index bc8c4cf019..600c387ef0 100644 --- a/.github/workflows/xcm.yml +++ b/.github/workflows/xcm.yml @@ -336,7 +336,7 @@ jobs: - name: Call HRMP initialization working-directory: js-packages/tests run: | - yarn ts-node-esm util/createHrmp.ts ${{matrix.network}} + yarn ts-node --esm util/createHrmp.ts ${{matrix.network}} - name: Run XCM tests working-directory: js-packages/tests diff --git a/.github/workflows/yarn-dev.yml b/.github/workflows/yarn-dev.yml index dcbbb3b13b..63b3af4299 100644 --- a/.github/workflows/yarn-dev.yml +++ b/.github/workflows/yarn-dev.yml @@ -91,13 +91,13 @@ jobs: working-directory: js-packages/scripts run: | yarn install - npx ts-node-esm ./benchmarks/mintFee/index.ts + npx ts-node --esm ./benchmarks/mintFee/index.ts - name: Run benchmark opsFee tests working-directory: js-packages/scripts run: | yarn install - npx ts-node-esm ./benchmarks/opsFee/index.ts + npx ts-node --esm ./benchmarks/opsFee/index.ts - name: Stop running containers if: always() # run this step always diff --git a/js-packages/package.json b/js-packages/package.json index 9bda845ff5..553f37fca8 100644 --- a/js-packages/package.json +++ b/js-packages/package.json @@ -45,9 +45,9 @@ "prepublish": "yarn tsc", "lint": "eslint --ext .ts .", "fix": "yarn lint --fix", - "polkadot-types-fetch-metadata": "yarn ts-node-esm scripts/fetchMetadata.ts", - "polkadot-types-from-defs": "ts-node-esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .", - "polkadot-types-from-chain": "ts-node-esm ./node_modules/.bin/polkadot-types-from-chain --endpoint scripts/metadata.json --output types/ --package .", + "polkadot-types-fetch-metadata": "yarn ts-node --esm scripts/fetchMetadata.ts", + "polkadot-types-from-defs": "ts-node --esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .", + "polkadot-types-from-chain": "ts-node --esm ./node_modules/.bin/polkadot-types-from-chain --endpoint scripts/metadata.json --output types/ --package .", "polkadot-types": "echo \"export default {}\" > types/lookup.ts && yarn polkadot-types-fetch-metadata && yarn polkadot-types-from-defs && yarn polkadot-types-from-defs && yarn polkadot-types-from-chain && rm types/registry.ts" }, "resolutions": { diff --git a/js-packages/scripts/package.json b/js-packages/scripts/package.json index 51c1ab6906..33001cd1af 100644 --- a/js-packages/scripts/package.json +++ b/js-packages/scripts/package.json @@ -10,11 +10,11 @@ "version": "1.0.0", "main": "", "scripts": { - "benchMintingFee": "yarn ts-node-esm benchmarks/mintFee/benchmark.ts", - "loadTransfer": "yarn ts-node-esm transfer.nload.ts", - "generateEnv": "yarn ts-node-esm ./generateEnv.ts", - "propose-upgrade": "yarn ts-node-esm ./proposeupgrade.ts", - "propose-fast-track": "yarn ts-node-esm ./proposefasttrack.ts", - "council-democracy-proposal": "yarn ts-node-esm ./councilproposal.ts" + "benchMintingFee": "yarn ts-node --esm benchmarks/mintFee/benchmark.ts", + "loadTransfer": "yarn ts-node --esm transfer.nload.ts", + "generateEnv": "yarn ts-node --esm ./generateEnv.ts", + "propose-upgrade": "yarn ts-node --esm ./proposeupgrade.ts", + "propose-fast-track": "yarn ts-node --esm ./proposefasttrack.ts", + "council-democracy-proposal": "yarn ts-node --esm ./councilproposal.ts" } } diff --git a/js-packages/tests/migrations/942057-appPromotion/README.md b/js-packages/tests/migrations/942057-appPromotion/README.md index 6ed601d05a..fcdf6bb048 100644 --- a/js-packages/tests/migrations/942057-appPromotion/README.md +++ b/js-packages/tests/migrations/942057-appPromotion/README.md @@ -38,5 +38,5 @@ To run, you need to set an environment variables: Run the migration by executing the following command: ```sh -npx ts-node-esm executeMigration.ts +npx ts-node --esm executeMigration.ts ``` diff --git a/js-packages/tests/package.json b/js-packages/tests/package.json index e463e004cd..1c446694f7 100644 --- a/js-packages/tests/package.json +++ b/js-packages/tests/package.json @@ -13,9 +13,9 @@ "mocha": "^10.1.0" }, "scripts": { - "setup": "yarn ts-node-esm ./util/globalSetup.ts", - "setIdentities": "yarn ts-node-esm ./util/identitySetter.ts", - "checkRelayIdentities": "yarn ts-node-esm ./util/relayIdentitiesChecker.ts", + "setup": "yarn ts-node --esm ./util/globalSetup.ts", + "setIdentities": "yarn ts-node --esm ./util/identitySetter.ts", + "checkRelayIdentities": "yarn ts-node --esm ./util/relayIdentitiesChecker.ts", "_test": "yarn setup && yarn mocha --timeout 9999999 --loader ts-node/esm", "_testParallel": "yarn setup && yarn mocha --timeout 9999999 --parallel --loader ts-node/esm", "test": "yarn _test './**/*.*test.ts'", diff --git a/js-packages/yarn.lock b/js-packages/yarn.lock index 6d35f99181..a256fae612 100644 --- a/js-packages/yarn.lock +++ b/js-packages/yarn.lock @@ -5804,7 +5804,7 @@ __metadata: bin: ts-node: dist/bin.js ts-node-cwd: dist/bin-cwd.js - ts-node-esm: dist/bin-esm.js + ts-node --esm: dist/bin-esm.js ts-node-script: dist/bin-script.js ts-node-transpile-only: dist/bin-transpile.js ts-script: dist/bin-script-deprecated.js