difftreelog
fix nodejs error with esm module
in: master
14 files changed
.github/workflows/codestyle.ymldiffbeforeafterboth--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -40,7 +40,7 @@
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Install modules
run: cd js-packages && yarn
- name: Run ESLint
.github/workflows/collator-selection.ymldiffbeforeafterboth--- a/.github/workflows/collator-selection.yml
+++ b/.github/workflows/collator-selection.yml
@@ -146,7 +146,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/forkless-update-data.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-data.yml
+++ b/.github/workflows/forkless-update-data.yml
@@ -122,7 +122,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
@@ -151,7 +151,7 @@
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 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
env:
RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -137,7 +137,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
@@ -166,7 +166,7 @@
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 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
env:
RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}
.github/workflows/governance.ymldiffbeforeafterboth--- a/.github/workflows/governance.yml
+++ b/.github/workflows/governance.yml
@@ -79,7 +79,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Run tests
working-directory: js-packages/tests
.github/workflows/make-bench.ymldiffbeforeafterboth--- a/.github/workflows/make-bench.yml
+++ b/.github/workflows/make-bench.yml
@@ -36,7 +36,7 @@
- uses: actions/setup-node@v3
with:
- node-version: 20
+ node-version: 20
- name: RUN benchmarking
run: |
@@ -50,8 +50,8 @@
working-directory: js-packages/scripts
run: |
yarn
- yarn ts-node --esm calibrate.ts
- yarn ts-node --esm calibrateApply.ts
+ yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrate.ts
+ yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm calibrateApply.ts
- name: show git diff
run: |
.github/workflows/market-test.ymldiffbeforeafterboth--- a/.github/workflows/market-test.yml
+++ b/.github/workflows/market-test.yml
@@ -103,7 +103,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Setup TypeScript
working-directory: qa-tests
.github/workflows/node-only-update.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update.yml
+++ b/.github/workflows/node-only-update.yml
@@ -143,7 +143,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
.github/workflows/polkadot-types.ymldiffbeforeafterboth--- a/.github/workflows/polkadot-types.yml
+++ b/.github/workflows/polkadot-types.yml
@@ -68,7 +68,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
# - name: Install jq
# run: sudo apt install jq -y
.github/workflows/try-runtime.ymldiffbeforeafterboth--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -175,7 +175,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Log in to Docker Hub
uses: docker/login-action@v2.1.0
.github/workflows/xcm.ymldiffbeforeafterboth--- a/.github/workflows/xcm.yml
+++ b/.github/workflows/xcm.yml
@@ -327,7 +327,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Install baedeker
uses: UniqueNetwork/baedeker-action/setup@built
@@ -370,7 +370,7 @@
- name: Call HRMP initialization
working-directory: js-packages/tests
run: |
- yarn ts-node --esm util/createHrmp.ts ${{matrix.network}}
+ yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm util/createHrmp.ts ${{matrix.network}}
- name: Run XCM tests
working-directory: js-packages/tests
.github/workflows/xnft.ymldiffbeforeafterboth--- a/.github/workflows/xnft.yml
+++ b/.github/workflows/xnft.yml
@@ -159,7 +159,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Clone xnft-tests
run: git clone https://github.com/UniqueNetwork/xnft-tests.git
.github/workflows/yarn-dev.ymldiffbeforeafterboth--- a/.github/workflows/yarn-dev.yml
+++ b/.github/workflows/yarn-dev.yml
@@ -59,7 +59,7 @@
- uses: actions/setup-node@v3.5.1
with:
- node-version: 20
+ node-version: 20
- name: Run tests
working-directory: js-packages/tests
@@ -90,13 +90,13 @@
working-directory: js-packages/scripts
run: |
yarn install
- npx ts-node --esm ./benchmarks/mintFee/index.ts
+ node --no-warnings=ExperimentalWarning --loader 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
+ node --no-warnings=ExperimentalWarning --loader ts-node/esm ./benchmarks/opsFee/index.ts
- name: Stop running containers
if: always() # run this step always
js-packages/package.jsondiffbeforeafterboth1{2 "name": "unique-tests",3 "version": "1.0.0",4 "description": "Unique Chain Tests",5 "author": "",6 "license": "SEE LICENSE IN ../LICENSE",7 "homepage": "",8 "main": "",9 "private": true,10 "dependencies": {11 "@openzeppelin/contracts": "^4.9.2",12 "chai-as-promised": "^7.1.1",13 "chai-like": "^1.1.1",14 "csv-writer": "^1.6.0",15 "lossless-json": "^3.0.1",16 "solc": "^0.8.22",17 "typechain": "^8.3.2",18 "web3": "1.10.0"19 },20 "devDependencies": {21 "@types/chai": "^4.3.9",22 "@types/chai-as-promised": "^7.1.7",23 "@types/chai-like": "^1.1.2",24 "@types/chai-subset": "^1.3.4",25 "@types/mocha": "^10.0.3",26 "@types/node": "^20.8.10",27 "@typescript-eslint/eslint-plugin": "^6.10.0",28 "@typescript-eslint/parser": "^6.10.0",29 "@unique/opal-types": "workspace:*",30 "@unique/playgrounds": "workspace:*",31 "chai": "^4.3.10",32 "chai-subset": "^1.6.0",33 "eslint": "^8.53.0",34 "eslint-plugin-mocha": "^10.2.0",35 "ts-node": "^10.9.1",36 "typescript": "^5.2.2"37 },38 "mocha": {39 "timeout": 9999999,40 "require": [41 "ts-node/register"42 ]43 },44 "scripts": {45 "prepublish": "yarn tsc",46 "lint": "eslint --ext .ts .",47 "fix": "yarn lint --fix",48 "polkadot-types-fetch-metadata": "yarn 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 .",50 "polkadot-types-from-chain": "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"52 },53 "resolutions": {54 "decode-uri-component": "^0.2.1"55 },56 "type": "module",57 "packageManager": "yarn@3.6.1",58 "workspaces": [59 "types",60 "playgrounds",61 "scripts",62 "tests"63 ]64}