UNPKG

react-hook-form

Version:

Performant, flexible and extensible forms library for React Hooks

130 lines (129 loc) 4.34 kB
{ "name": "react-hook-form", "description": "Performant, flexible and extensible forms library for React Hooks", "version": "6.6.0", "main": "dist/index.js", "module": "dist/index.esm.js", "umd:main": "dist/index.umd.production.min.js", "unpkg": "dist/index.umd.production.min.js", "jsdelivr": "dist/index.umd.production.min.js", "jsnext:main": "dist/index.esm.js", "source": "src/index.ts", "types": "dist/index.d.ts", "sideEffects": true, "files": [ "dist" ], "scripts": { "clean": "rimraf dist", "prebuild": "npm run clean", "build": "node rollup/writeCjsEntryFile.js && npm run build:modern && npm run build:ie11 && npm run cp:dts", "build:modern": "rollup -c ./rollup/rollup.config.js", "build:ie11": "rollup -c ./rollup/rollup.ie11.config.js", "cp:dts": "copyfiles -f ./src/**/*.d.ts dist", "lint": "eslint '**/*.{js,ts,tsx}'", "lint:fix": "npm run lint -- --fix", "lint:types": "tsc --noEmit", "coverage": "jest --coverage --coverageReporters=text-lcov | coveralls", "test": "jest --runInBand", "test:coverage": "jest --runInBand --coverage", "test:watch": "npm run test:coverage -- --watchAll", "test:web": "TEST_ENV=web jest --runInBand", "test:server": "TEST_ENV=server jest --runInBand", "test:native": "TEST_ENV=native jest --runInBand", "cypress": "cypress run", "cypress:open": "cypress open", "prepublishOnly": "npm run lint && npm run lint:types && npm test && npm run build", "bundlesize": "npm run build:modern && bundlesize", "start:app": "npm run build:modern && yarn link && yarn --cwd node_modules/react link && yarn --cwd ./app link react react-hook-form && yarn --cwd ./app && yarn --cwd ./app run start", "changeset": "changeset", "release": "changeset publish" }, "keywords": [ "react", "hooks", "form", "forms", "form-validation", "validation", "typescript", "react-hooks" ], "repository": "https://github.com/react-hook-form/react-hook-form.git", "homepage": "https://www.react-hook-form.com", "author": "<bluebill1049@hotmail.com>", "license": "MIT", "devDependencies": { "@babel/core": "^7.11.4", "@babel/plugin-transform-runtime": "^7.10.4", "@changesets/changelog-github": "^0.2.6", "@changesets/cli": "^2.9.2", "@rollup/plugin-commonjs": "^13.0.0", "@rollup/plugin-node-resolve": "^8.4.0", "@rollup/plugin-replace": "^2.3.3", "@testing-library/jest-dom": "^5.11.0", "@testing-library/react": "^10.4.6", "@testing-library/react-hooks": "^3.3.0", "@testing-library/react-native": "^5.0.3", "@types/jest": "^26.0.4", "@types/react": "^16.9.43", "@types/react-dom": "^16.9.8", "@types/react-native": "^0.62.16", "@types/react-test-renderer": "^16.9.2", "@typescript-eslint/eslint-plugin": "^3.6.1", "@typescript-eslint/parser": "^3.6.1", "babel-jest": "^26.1.0", "bundlesize": "^0.18.0", "copyfiles": "^2.3.0", "core-js": "^3.6.5", "coveralls": "^3.1.0", "cypress": "5.0.0", "eslint": "^7.4.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-cypress": "^2.11.1", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.3", "eslint-plugin-react-hooks": "^4.0.8", "husky": "^4.2.5", "jest": "^26.4.1", "jest-performance-testing": "^1.0.0", "lint-staged": "^10.2.11", "metro-react-native-babel-preset": "^0.60.0", "prettier": "^2.0.5", "react": "^16.13.1", "react-dom": "^16.13.1", "react-native": "^0.62.2", "react-performance-testing": "^1.2.0", "react-test-renderer": "^16.13.1", "rimraf": "^3.0.2", "rollup": "^2.26.4", "rollup-plugin-peer-deps-external": "^2.2.3", "rollup-plugin-sourcemaps": "^0.6.2", "rollup-plugin-terser": "^6.1.0", "rollup-plugin-typescript2": "^0.27.1", "ts-jest": "^26.1.2", "typescript": "^4.0.2" }, "bundlesize": [ { "path": "./dist/index.cjs.production.min.js", "maxSize": "9.5 kB" } ], "peerDependencies": { "react": "^16.8.0" }, "husky": { "hooks": { "pre-commit": "npm run lint:types && lint-staged" } }, "lint-staged": { "*.{js,ts,tsx}": [ "npm run lint:fix" ], "*.{md,json,yml}": [ "prettier --write" ] } }