@metamask/snaps-cli

v0.37.1-flask.1
A CLI for developing MetaMask Snaps.

lint

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

test

jest --runInBand && yarn posttest

build

yarn build:source && yarn build:types

clean

rimraf '*.tsbuildinfo' 'dist'

lint:ci

yarn lint

test:ci

yarn test

lint:fix

yarn lint:eslint --fix && yarn lint:misc --write

posttest

jest-it-up

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

lint:misc

prettier --no-error-on-unmatched-pattern --loglevel warn "**/*.json" "**/*.md" "**/*.html" "!CHANGELOG.md" --ignore-path ../../.gitignore

test:watch

yarn test --watch

build:chmod

chmod +x ./dist/esm/main.js && chmod +x ./dist/cjs/main.js

build:clean

yarn clean && yarn build

build:types

tsc --project tsconfig.build.json

build:watch

tsc-watch --onSuccess 'yarn build:chmod'

lint:eslint

eslint . --cache --ext js,ts,jsx,tsx

build:readme

node ./scripts/updateReadme.js

build:source

yarn build:esm && yarn build:cjs

build:post-tsc

yarn build:chmod && yarn build:readme

lint:changelog

yarn auto-changelog validate

publish:preview

yarn npm publish --tag preview

prepare-manifest:preview

../../scripts/prepare-preview-manifest.sh
npm i @metamask/[email protected]

Metadata

  • ISC
  • >=16.0.0
  • Unknown
  • released 7/18/2023

Downloads