@react-hook/switch
v1.1.0 react react hook react hooks hooks switch toggle toggle hook switch hook
build
npm run build-esm && npm run build-main && npm run build-module && npm run build-types
build-esm
npm run compile -- -d dist/esm --env-name esm --out-file-extension .mjs
build-main
npm run compile -- -d dist/main --env-name main
build-module
npm run compile -- -d dist/module --env-name module
build-types
tsc -p tsconfig.json -d --outDir types --emitDeclarationOnly
check-types
tsc --noEmit -p tsconfig.json
compile
babel src -x .ts,.tsx --ignore "**/*.test.ts","**/*.test.tsx" --delete-dir-on-start
format
prettier --write "**/*.{ts,tsx,js,jsx,md,yml,json,eslintrc,prettierrc}"
lint
eslint . --ext .ts,.tsx
prepublishOnly
npm run lint && npm run test && npm run build && npm run format
test
jest
validate
npm run check-types && npm run lint && npm run test -- --coverage
npm i @react-hook/[email protected]
Metadata
- MIT
- Whatever
- Jared Lunde
- released 5/30/2020