UNPKG

remix-hook-form

Version:

Utility wrapper around react-hook-form for use with react-router v7+

111 lines 3.33 kB
{ "name": "remix-hook-form", "version": "7.1.0", "description": "Utility wrapper around react-hook-form for use with react-router v7+", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "exports": { ".": { "types": "./dist/index.d.ts", "import": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "import": "./dist/index.cjs", "require": "./dist/index.cjs" } }, "./middleware": { "types": "./dist/middleware/index.d.ts", "import": { "types": "./dist/middleware/index.d.ts", "import": "./dist/middleware/index.js", "default": "./dist/middleware/index.js" }, "require": { "types": "./dist/middleware/index.d.cts", "import": "./dist/middleware/index.cjs", "require": "./dist/middleware/index.cjs" } } }, "typings": "./dist/index.d.ts", "files": [ "dist" ], "workspaces": [ ".", "test-apps/*" ], "scripts": { "build": "tsup src/index.ts src/middleware/index.ts --format cjs,esm --dts --clean", "react-router-dev": "npm run dev -w test-apps/react-router", "build:dev": "tsup src/index.ts src/middleware/index.ts --format cjs,esm --dts", "build:dev:watch": "npm run build:dev -- --watch", "dev": "npm-run-all -s build:dev -p react-router-dev build:dev:watch", "vite": "npm run build --watch -m development", "prepublishOnly": "npm run build", "test": "vitest run", "typecheck": "tsc", "validate": "npm run lint && npm run tsc && npm run test", "lint": "eslint \"src/**/*.+(ts|tsx)\"", "lint:fix": "npm run lint -- --fix", "prettier": "prettier src --check", "prettier:fix": "prettier src --write", "format-code": "npm run prettier:fix & npm run lint:fix" }, "repository": { "type": "git", "url": "git+https://github.com/forge-42/remix-hook-form.git" }, "keywords": [ "React", "react-router", "react-router v7", "react-hook-form", "hooks", "remix", "remix react-hook-form", "react-router react-hook-form", "forms" ], "author": "Alem Tuzlak", "license": "MIT", "bugs": { "url": "https://github.com/forge-42/remix-hook-form/issues" }, "homepage": "https://github.com/forge-42/remix-hook-form#readme", "peerDependencies": { "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0", "react-hook-form": "^7.55.0", "react-router": ">=7.5.0" }, "readme": "https://github.com/forge42dev/remix-hook-form#readme", "devDependencies": { "@hookform/resolvers": "^3.1.0", "@testing-library/react": "^14.0.0", "@types/node": "^18.15.11", "@types/react": "^18.0.34", "@vitest/coverage-v8": "^2.0.3", "babel-eslint": "^10.1.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.0", "happy-dom": "^9.5.0", "npm-run-all": "^4.1.5", "prettier": "^3.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-hook-form": "^7.51.0", "rollup": "^3.20.2", "rollup-plugin-typescript2": "^0.34.1", "tsup": "^8.3.5", "typescript": "^5.0.4", "vitest": "^2.0.3", "zod": "^3.21.4" } }