git.delta.rocks / unique-network / refs/commits / 1f925f1cca7b

difftreelog

fix nodejs error with esm module

Konstantin Astakhov2023-12-18parent: #2b9417a.patch.diff
in: master

14 files changed

modified.github/workflows/codestyle.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/collator-selection.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/forkless-update-data.ymldiffbeforeafterboth
147147
148 - name: "Reconcile: runtime is upgraded"148 - name: "Reconcile: runtime is upgraded"
149 working-directory: js-packages/tests149 working-directory: js-packages/tests
150 run: |150 run: |
151 yarn151 yarn
152 ../scripts/wait_for_first_block.sh152 ../scripts/wait_for_first_block.sh
153 echo "Executing upgrade"153 echo "Executing upgrade"
154 yarn ts-node --esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm154 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm
155 env:155 env:
156 RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}156 RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}
157157
modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
162162
163 - name: "Reconcile: runtime is upgraded"163 - name: "Reconcile: runtime is upgraded"
164 working-directory: js-packages/tests164 working-directory: js-packages/tests
165 run: |165 run: |
166 yarn166 yarn
167 ../scripts/wait_for_first_block.sh167 ../scripts/wait_for_first_block.sh
168 echo "Executing upgrade"168 echo "Executing upgrade"
169 yarn ts-node --esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm169 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm util/authorizeEnactUpgrade.ts ${{ steps.wasms.outputs.dir }}/${{ matrix.wasm_name }}-runtime/${{ matrix.wasm_name }}_runtime.compact.compressed.wasm
170 env:170 env:
171 RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}171 RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}
172172
modified.github/workflows/governance.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/make-bench.ymldiffbeforeafterboth
4848
49 - name: RUN Calibrate49 - name: RUN Calibrate
50 working-directory: js-packages/scripts50 working-directory: js-packages/scripts
51 run: |51 run: |
52 yarn52 yarn
53 yarn ts-node --esm calibrate.ts53 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrate.ts
54 yarn ts-node --esm calibrateApply.ts54 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrateApply.ts
55 55
56 - name: show git diff56 - name: show git diff
57 run: |57 run: |
modified.github/workflows/market-test.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/node-only-update.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/polkadot-types.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/try-runtime.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/xcm.ymldiffbeforeafterboth
369369
370 - name: Call HRMP initialization370 - name: Call HRMP initialization
371 working-directory: js-packages/tests371 working-directory: js-packages/tests
372 run: |372 run: |
373 yarn ts-node --esm util/createHrmp.ts ${{matrix.network}}373 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm util/createHrmp.ts ${{matrix.network}}
374374
375 - name: Run XCM tests375 - name: Run XCM tests
376 working-directory: js-packages/tests376 working-directory: js-packages/tests
modified.github/workflows/xnft.ymldiffbeforeafterboth

no syntactic changes

modified.github/workflows/yarn-dev.ymldiffbeforeafterboth
8888
89 - name: Run benchmark mintFee tests89 - name: Run benchmark mintFee tests
90 working-directory: js-packages/scripts90 working-directory: js-packages/scripts
91 run: |91 run: |
92 yarn install92 yarn install
93 npx ts-node --esm ./benchmarks/mintFee/index.ts93 node --no-warnings=ExperimentalWarning --loader ts-node/esm ./benchmarks/mintFee/index.ts
9494
95 - name: Run benchmark opsFee tests95 - name: Run benchmark opsFee tests
96 working-directory: js-packages/scripts96 working-directory: js-packages/scripts
97 run: |97 run: |
98 yarn install98 yarn install
99 npx ts-node --esm ./benchmarks/opsFee/index.ts99 node --no-warnings=ExperimentalWarning --loader ts-node/esm ./benchmarks/opsFee/index.ts
100100
101 - name: Stop running containers101 - name: Stop running containers
102 if: always() # run this step always102 if: always() # run this step always
modifiedjs-packages/package.jsondiffbeforeafterboth
45 "prepublish": "yarn tsc",45 "prepublish": "yarn tsc",
46 "lint": "eslint --ext .ts .",46 "lint": "eslint --ext .ts .",
47 "fix": "yarn lint --fix",47 "fix": "yarn lint --fix",
48 "polkadot-types-fetch-metadata": "yarn ts-node --esm scripts/fetchMetadata.ts",48 "polkadot-types-fetch-metadata": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/fetchMetadata.ts",
49 "polkadot-types-from-defs": "ts-node --esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .",49 "polkadot-types-from-defs": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ./node_modules/.bin/polkadot-types-from-defs --endpoint scripts/metadata.json --input types/ --package .",
50 "polkadot-types-from-chain": "ts-node --esm ./node_modules/.bin/polkadot-types-from-chain --endpoint scripts/metadata.json --output types/ --package .",50 "polkadot-types-from-chain": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ./node_modules/.bin/polkadot-types-from-chain --endpoint scripts/metadata.json --output types/ --package .",
51 "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"51 "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"
52 },52 },
53 "resolutions": {53 "resolutions": {