@react-hook/merged-ref
v1.0.5 react react hook merged ref merge two refs combine refs multiple refs
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 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 12/9/2019