UNPKG

hook-conditional

Version:

Conditionally run different React hooks at runtime with a clean and safe API that follows the Rules of Hooks.

74 lines (73 loc) 1.92 kB
{ "name": "hook-conditional", "displayName": "React Hook Conditional", "version": "0.2.0", "description": "Conditionally run different React hooks at runtime with a clean and safe API that follows the Rules of Hooks.", "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "license": "MIT", "author": { "name": "JP.Coffee", "url": "https://jp.coffee" }, "repository": { "type": "git", "url": "https://github.com/jp-coffee/hook-conditional.git" }, "bugs": { "url": "https://github.com/jp-coffee/hook-conditional/issues" }, "homepage": "https://github.com/jp-coffee/hook-conditional#readme", "keywords": [ "react", "hooks", "conditional", "runtime", "dynamic", "state-management", "typescript" ], "files": [ "dist" ], "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "scripts": { "build": "npm run prebuild && tsc", "clean": "rimraf dist", "lint": "eslint .", "lint:fix": "eslint . --ext .ts,.tsx --fix", "prebuild": "npm run clean", "test": "vitest run", "test:watch": "vitest --watch", "typecheck": "tsc --noEmit", "verify-provenance": "./scripts/verify-provenance.sh" }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@types/node": "^24.0.0", "@types/react": "^19.0.12", "@typescript-eslint/eslint-plugin": "^8.28.0", "@typescript-eslint/parser": "^8.28.0", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.23.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-react": "^7.37.4", "eslint-plugin-react-hooks": "^5.2.0", "jsdom": "^26.0.0", "rimraf": "^6.0.1", "typescript": "^5.8.2", "vite": "^6.2.3", "vitest": "^3.0.9" }, "peerDependencies": { "react": "^19.0.0" } }