@react-hook/debounce
v1.0.6 react react hook hook react hooks hooks debounce debounce hook react hook debounce
build
npm run build:cjs && npm run build:es && npm run build:types
build:cjs
babel src -d dist/cjs -x .ts --ignore "**/*.test.ts","**/test.ts" --delete-dir-on-start
build:es
babel src -d dist/es -x .ts --env-name es --ignore "**/*.test.ts","**/test.ts" --delete-dir-on-start
build:types
tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts
check-types
tsc --noEmit -p tsconfig.json
format
prettier --write "**/*.{ts,js,md,yml,json,babelrc,eslintrc,prettierrc}"
lint
eslint . --ext .ts
prepublishOnly
npm run validate && 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
- Unknown
- released 11/24/2019