You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

154 lines
4.8 KiB

{
"name": "react-hook-form",
"description": "Performant, flexible and extensible forms library for React Hooks",
"version": "7.33.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",
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
}
},
"scripts": {
"clean": "rimraf dist",
"prebuild": "yarn clean",
"build": "yarn build:modern",
"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 \"**/*.{ts,tsx,css}\"",
"lint": "eslint '**/*.{js,ts,tsx}'",
"lint:fix": "yarn lint -- --fix",
"type": "tsc --noEmit",
"coverage": "jest --coverage --coverageReporters=text-lcov",
"jest-preview": "jest-preview",
"test": "jest --config ./scripts/jest/jest.config.js",
"test:coverage": "yarn test -- --coverage",
"test:watch": "yarn test -- --onlyChanged --watch",
"test:web": "TEST_ENV=web yarn test",
"test:server": "TEST_ENV=server yarn test",
"test:native": "TEST_ENV=native yarn test",
"tsd": "tsd src/__typetest__",
"cypress": "cypress run",
"cypress:open": "cypress open",
"api-extractor": "api-extractor run --local",
"api-extractor:build": "yarn build:esm && yarn api-extractor",
"api-extractor:ci": "node scripts/apiExtractor.js",
"postversion": "git push && git push origin v$npm_package_version",
"prepublishOnly": "yarn && yarn lint:fix && yarn type && yarn test && yarn build",
"bundlewatch": "yarn build:modern && bundlewatch",
"start:app": "yarn build:esm && yarn link && yarn --cwd node_modules/react link && yarn --cwd ./app link react react-hook-form && yarn --cwd ./app && yarn --cwd ./app run dev"
},
"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.25.2",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@swc/core": "^1.2.205",
"@swc/jest": "^0.2.21",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/react-native": "^9.1.0",
"@types/jest": "^28.1.2",
"@types/react": "^18.0.14",
"@types/react-native": "^0.67.8",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"bundlewatch": "^0.3.3",
"cypress": "9.4.1",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"husky": "^8.0.1",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"jest-preview": "^0.2.5",
"jest-watch-typeahead": "^1.1.0",
"lint-staged": "^13.0.2",
"metro-babel-register": "^0.71.1",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "^0.68.2",
"react-test-renderer": "^18.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.32.1",
"tsd": "^0.21.0",
"typescript": "^4.7.4"
},
"resolutions": {
"async": "^3.2.2"
},
"bundlewatch": {
"files": [
{
"path": "./dist/index.cjs.js",
"maxSize": "9.0 kB"
}
]
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18"
},
"lint-staged": {
"*.{js,ts,tsx}": [
"yarn lint:fix",
"yarn 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"
},
"packageManager": "yarn@1.22.15"
}