Skip to content

Commit

Permalink
ts-node-esm
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Apr 2, 2024
1 parent 0f04a36 commit 9fcee85
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/forkless-update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
yarn
../scripts/wait_for_first_block.sh
echo "Executing upgrade"
yarn node --loader 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 }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/forkless-update-nodata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
yarn
../scripts/wait_for_first_block.sh
echo "Executing upgrade"
yarn node --loader 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 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/make-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
working-directory: js-packages/scripts
run: |
yarn
yarn node --loader ts-node/esm calibrate.ts
yarn node --loader ts-node/esm calibrateApply.ts
yarn ts-node-esm calibrate.ts
yarn ts-node-esm calibrateApply.ts
- name: show git diff
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/xcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ jobs:
- name: Call HRMP initialization
working-directory: js-packages/tests
run: |
yarn node --loader 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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/yarn-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ jobs:
working-directory: js-packages/scripts
run: |
yarn install
npx node --loader 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 node --loader 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
Expand Down
6 changes: 3 additions & 3 deletions js-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"prepublish": "yarn tsc",
"lint": "eslint --ext .ts .",
"fix": "yarn lint --fix",
"polkadot-types-fetch-metadata": "yarn node --loader ts-node/esm scripts/fetchMetadata.ts",
"polkadot-types-from-defs": "node --loader ts-node/esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .",
"polkadot-types-from-chain": "node --loader 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": {
Expand Down
12 changes: 6 additions & 6 deletions js-packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"version": "1.0.0",
"main": "",
"scripts": {
"benchMintingFee": "yarn node --loader ts-node/esm benchmarks/mintFee/benchmark.ts",
"loadTransfer": "yarn node --loader ts-node/esm transfer.nload.ts",
"generateEnv": "yarn node --loader ts-node/esm ./generateEnv.ts",
"propose-upgrade": "yarn node --loader ts-node/esm ./proposeupgrade.ts",
"propose-fast-track": "yarn node --loader ts-node/esm ./proposefasttrack.ts",
"council-democracy-proposal": "yarn node --loader 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"
}
}
2 changes: 1 addition & 1 deletion js-packages/tests/migrations/942057-appPromotion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ To run, you need to set an environment variables:
Run the migration by executing the following command:

```sh
npx node --loader ts-node/esm executeMigration.ts
npx ts-node-esm executeMigration.ts
```
6 changes: 3 additions & 3 deletions js-packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"mocha": "^10.1.0"
},
"scripts": {
"setup": "yarn node --loader ts-node/esm ./util/globalSetup.ts",
"setIdentities": "yarn node --loader ts-node/esm ./util/identitySetter.ts",
"checkRelayIdentities": "yarn node --loader 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'",
Expand Down

0 comments on commit 9fcee85

Please sign in to comment.