build
npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json && npm run formatjs
checkHybrid
chmod +x test.cjs && node test.cjs
clean
rimraf src types
coverage
c8 --check-coverage --include='src/esm/lib/**/*.js' --reporter=lcov --reporter=text --branches 90 --functions 90 --lines 90 npm run unit
flb
npm run format && npm run lint && npm run build
format
npm run prettier -- --write
formatjs
npm run prettierjs -- --write > /dev/null 2>&1
format:ci
npm run prettier -- --check && npm run prettierjs -- --check
gitdiff:ci
npm run build && git diff --exit-code
lint
tslint -p tsconfig.json -c tslint.json
postbuild
find src/cjs -type f -name "*.js" -exec bash -c 'mv "$0" "${0%.js}.cjs"' {} \; && chmod +x fixup.cjs && node fixup.cjs
prettier
prettier 'ts_src/**/*.ts' --ignore-path ./.prettierignore
prettierjs
prettier 'src/**/*.js' --ignore-path ./.prettierignore
test
npm run format:ci && npm run lint && npm run build && npm run coverage
unit
tape src/esm/tests/*.js src/esm/tests/fromBIP/*.js