123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- {
- "name": "react-hook-form",
- "description": "Performant, flexible and extensible forms library for React Hooks",
- "version": "7.50.1",
- "main": "dist/index.cjs.js",
- "module": "dist/index.esm.mjs",
- "umd:main": "dist/index.umd.js",
- "unpkg": "dist/index.umd.js",
- "jsdelivr": "dist/index.umd.js",
- "jsnext:main": "dist/index.esm.mjs",
- "source": "src/index.ts",
- "types": "dist/index.d.ts",
- "sideEffects": false,
- "files": [
- "dist",
- "dist/__tests__"
- ],
- "exports": {
- "./package.json": "./package.json",
- ".": {
- "types": "./dist/index.d.ts",
- "react-server": "./dist/react-server.esm.mjs",
- "import": "./dist/index.esm.mjs",
- "require": "./dist/index.cjs.js"
- }
- },
- "scripts": {
- "clean": "rimraf dist",
- "prebuild": "pnpm clean",
- "build": "pnpm build:modern",
- "build:watch": "pnpm build:modern -w",
- "postbuild": "rimraf dist/__tests__ && node ./scripts/rollup/assert-esm-exports.mjs && node ./scripts/rollup/assert-cjs-exports.cjs",
- "build:modern": "rollup -c ./scripts/rollup/rollup.config.js",
- "build:esm": "rollup -c ./scripts/rollup/rollup.esm.config.js",
- "prettier:fix": "prettier --config .prettierrc --write \"**/*.{js,ts,tsx,css}\"",
- "lint": "eslint '**/*.{js,ts,tsx}'",
- "lint:fix": "pnpm lint --fix",
- "type": "tsc --noEmit",
- "jest-preview": "jest-preview",
- "test": "jest --config ./scripts/jest/jest.config.js",
- "test:coverage": "pnpm test -- --coverage",
- "test:watch": "pnpm test -- --onlyChanged --watch",
- "test:web": "TEST_ENV=web pnpm test",
- "test:type": "tsd src/__typetest__",
- "e2e": "cypress run",
- "e2e:watch": "cypress open",
- "api-extractor": "api-extractor run --local",
- "api-extractor:build": "pnpm build:esm && pnpm api-extractor",
- "api-extractor:ci": "node scripts/apiExtractor.js",
- "postversion": "git push && git push origin v$npm_package_version",
- "prepublishOnly": "pnpm install && pnpm lint:fix && pnpm type && pnpm test && pnpm build",
- "bundlewatch": "pnpm build:modern && bundlewatch",
- "start": "pnpm build:esm && pnpm --dir ./app install && pnpm --dir ./app run dev",
- "csb:install": "npm i -g pnpm@8 && pnpm i"
- },
- "keywords": [
- "react",
- "hooks",
- "form",
- "forms",
- "form-validation",
- "validation",
- "typescript",
- "react-hooks"
- ],
- "repository": {
- "type": "git",
- "url": "https://github.com/react-hook-form/react-hook-form"
- },
- "homepage": "https://www.react-hook-form.com",
- "author": "<bluebill1049@hotmail.com>",
- "license": "MIT",
- "devDependencies": {
- "@microsoft/api-extractor": "^7.35.2",
- "@rollup/plugin-commonjs": "^22.0.2",
- "@rollup/plugin-node-resolve": "^14.1.0",
- "@rollup/plugin-terser": "^0.4.3",
- "@swc/core": "^1.3.62",
- "@swc/jest": "^0.2.26",
- "@testing-library/jest-dom": "^5.16.5",
- "@testing-library/react": "^13.4.0",
- "@testing-library/react-hooks": "^8.0.1",
- "@types/jest": "^29.5.2",
- "@types/react": "^18.2.9",
- "@types/react-dom": "^18.2.4",
- "@types/testing-library__jest-dom": "^5.14.6",
- "@typescript-eslint/eslint-plugin": "^5.59.9",
- "@typescript-eslint/parser": "^5.59.9",
- "bundlewatch": "^0.3.3",
- "cypress": "^10.11.0",
- "eslint": "^8.42.0",
- "eslint-config-prettier": "^8.8.0",
- "eslint-plugin-cypress": "^2.13.3",
- "eslint-plugin-prettier": "^4.2.1",
- "eslint-plugin-react": "^7.32.2",
- "eslint-plugin-react-hooks": "^4.6.0",
- "eslint-plugin-simple-import-sort": "^8.0.0",
- "husky": "^8.0.3",
- "jest": "^29.5.0",
- "jest-environment-jsdom": "^29.5.0",
- "jest-preview": "^0.3.1",
- "lint-staged": "^13.2.2",
- "msw": "^1.2.2",
- "prettier": "^2.8.8",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
- "react-test-renderer": "^18.2.0",
- "rimraf": "^3.0.2",
- "rollup": "^2.79.1",
- "rollup-plugin-peer-deps-external": "^2.2.4",
- "rollup-plugin-sourcemaps": "^0.6.3",
- "rollup-plugin-typescript2": "^0.34.1",
- "tsd": "^0.27.0",
- "typescript": "^5.1.3",
- "whatwg-fetch": "^3.6.2"
- },
- "bundlewatch": {
- "files": [
- {
- "path": "./dist/index.cjs.js",
- "maxSize": "10 kB"
- }
- ]
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17 || ^18"
- },
- "lint-staged": {
- "*.{js,ts,tsx}": [
- "pnpm lint:fix",
- "pnpm prettier:fix"
- ],
- "*.{md,json,yml}": [
- "prettier --write"
- ]
- },
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/react-hook-form"
- },
- "engines": {
- "node": ">=12.22.0"
- }
- }
|