@wojtekmaj/react-hooks

v1.21.0
A collection of React Hooks.
react hooks

build

yarn build-esm && yarn build-cjs && yarn build-cjs-package

build-esm

tsc --project tsconfig.build.json --outDir dist/esm

build-cjs

tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false

build-cjs-package

echo '{ "type": "commonjs" }' > dist/cjs/package.json

clean

rimraf dist

format

biome format

lint

biome lint

prepack

yarn clean && yarn build

test

yarn lint && yarn tsc && yarn format && yarn unit && yarn unit:node

tsc

tsc

unit

vitest --config vitest.config.ts

unit:node

vitest --config vitest.config.node.ts
npm i @wojtekmaj/react-hooks

Metadata

  • MIT
  • Whatever
  • Wojciech Maj
  • released 7/5/2024

Downloads

Maintainers