build
rm -rf types && tsc && npm run bundle-cjs && npm run bundle-esm
bundle-cjs
esbuild lib/index.mjs --bundle --format=cjs --outfile=dist/index.cjs
bundle-esm
esbuild lib/index.mjs --bundle --format=esm --outfile=dist/index.mjs
lint
eslint .
precommit
lint-staged
test
mocha --recursive -R dot "lib/**/*.test.*"
test-check-coverage
npm run test-coverage && c8 check-coverage --branches 100 --functions 100 --lines 100
test-coverage
c8 --reporter text --reporter html --reporter lcovonly npm run test
prepublishOnly
npm run build
prettier:check
prettier --check '**/*.{js,css,md}'
prettier:write
prettier --write '**/*.{js,css,md}'
preversion
npm run test-check-coverage
version
changes --commits --footer
postversion
git push --follow-tags && npm publish
prepare
husky install