package
npm run package:clear && npm run package:types && npm run package:build && npm run package:copyfiles
package:build
swc src -d build/package/src
package:types
tsc -p tsconfig.types.json --emitDeclarationOnly
package:copyfiles
cp package.json README.md CHANGELOG.md LICENSE build/package
package:clear
rm -rf build/package
package:publish
cd build/package && npm publish --access public
type-check
tsc --noEmit
lint
eslint -c eslint.config.js .
test
jest --config jest.config.js
coverage
jest --config jest.config.js --coverage
docs
npm run docs:clear && npm run docs:build
docs:clear
rm -rf build/docs
docs:build
typedoc --out build/docs --theme default src/index.ts
_postinstall
husky install config/husky
prepublishOnly
pinst --disable
postpublish
pinst --enable
precommit
npm run type-check && npm run lint && npm run coverage