@metamask/utils

v7.1.0
Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase

lint

yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog

test

yarn test:source && yarn test:types

build

yarn build:source && yarn build:types

prepack

./scripts/prepack.sh

lint:fix

yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog

build:cjs

swc src --out-dir dist/cjs --config-file .swcrc.build.json --config module.type=commonjs

build:esm

swc src --out-dir dist/esm --config-file .swcrc.build.json --config module.type=es6 && yarn build:esm:package

lint:misc

prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern

build:docs

typedoc

test:types

tsd

test:watch

jest --watch

build:clean

rimraf dist && yarn build

build:types

tsc --project tsconfig.build.json

lint:eslint

eslint . --cache --ext js,ts

test:source

jest && jest-it-up

build:source

yarn build:esm && yarn build:cjs

lint:changelog

auto-changelog validate

lint:constraints

yarn constraints

build:esm:package

echo >dist/esm/package.json "{\"type\":\"module\"}"

lint:dependencies

depcheck && yarn dedupe
npm i @metamask/[email protected]

Metadata

  • ISC
  • >=16.0.0
  • Unknown
  • released 8/1/2023

Downloads