web3-core

v4.6.1-dev.f701406.0
Web3 core tools for sub-packages. This is an internal package.

clean

rimraf dist && rimraf lib

prebuild

yarn clean

build

concurrently --kill-others-on-fail "yarn:build:*(!check)"

build:cjs

tsc --build tsconfig.cjs.json && echo '{"type": "commonjs"}' > ./lib/commonjs/package.json

build:esm

tsc --build tsconfig.esm.json && echo '{"type": "module"}' > ./lib/esm/package.json

build:types

tsc --build tsconfig.types.json

build:check

node -e "require('./lib')"

lint

eslint --cache --cache-strategy content --ext .ts .

lint:fix

eslint --fix --ext .js,.ts .

format

prettier --write '**/*'

test

jest --config=./test/unit/jest.config.js

test:coverage:unit

jest --config=./test/unit/jest.config.js --coverage=true --coverage-reporters=text

test:coverage:integration

jest --config=./test/integration/jest.config.js --passWithNoTests --coverage=true --coverage-reporters=text

test:ci

jest --coverage=true --coverage-reporters=json --verbose

test:watch

npm test -- --watch

test:unit

jest --config=./test/unit/jest.config.js

test:integration

jest --config=./test/integration/jest.config.js --passWithNoTests
npm i web3-core

Metadata

  • LGPL-3.0
  • >=14
  • ChainSafe Systems
  • released 10/9/2024

Downloads