diff --git a/.eslintrc b/.eslintrc index f93683740..8ab6a94b0 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,4 +1,5 @@ { + "ignorePatterns": ["dist/**/*"], "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8664b8006..918ee7091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,14 +117,6 @@ jobs: bash -x start_ocean.sh --with-provider2 --no-dashboard --with-c2d 2>&1 > start_ocean.log & - run: npm ci - run: npm run build:metadata - - name: Delete default runner images - run: | - docker image rm -f node:18 - docker image rm -f node:18-alpine - docker image rm -f node:20 - docker image rm -f debian:10 - docker image rm -f debian:11 - docker image rm -f moby/buildkit:latest - name: Wait for contracts deployment and C2D cluster to be ready working-directory: ${{ github.workspace }}/barge run: | diff --git a/.mocharc.json b/.mocharc.json new file mode 100644 index 000000000..5e2f3af26 --- /dev/null +++ b/.mocharc.json @@ -0,0 +1,8 @@ +{ + "require": ["source-map-support/register", "mock-local-storage"], + "extension": ["ts"], + "timeout": 200000, + "bail": true, + "exit": true, + "fullTrace": true +} diff --git a/CodeExamples.md b/CodeExamples.md index ef020a78d..0b9495aa7 100644 --- a/CodeExamples.md +++ b/CodeExamples.md @@ -79,7 +79,7 @@ Start by importing all of the necessary dependencies import fs from 'fs' import { ethers, providers, Signer } from 'ethers' -import { SHA256 } from 'crypto-js' +import crypto from 'crypto-js' import { homedir } from 'os' import { approve, @@ -109,8 +109,9 @@ import { getEventFromTx, DDO, LoggerInstance -} from '@oceanprotocol/lib' +} from '../../src/index.js' ``` +const { SHA256 } = crypto