forked from react-hook-form/react-hook-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
148 lines (148 loc) · 4.84 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "react-hook-form",
"description": "Performant, flexible and extensible forms library for React Hooks",
"version": "6.15.1",
"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"
],
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"./dist/index.ie11": {
"import": "./dist/index.ie11.js",
"require": "./dist/index.ie11.js"
}
},
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"build": "node scripts/rollup/writeCjsEntryFile.js && npm run build:modern && npm run build:ie11 && npm run cp:dts",
"build:modern": "rollup -c ./scripts/rollup/rollup.config.js",
"build:esm": "rollup -c ./scripts/rollup/rollup.esm.config.js",
"build:ie11": "rollup -c ./scripts/rollup/rollup.ie11.config.js",
"cp:dts": "copyfiles -f ./src/**/*.d.ts dist && rimraf dist/**/*.test.d.ts",
"lint": "eslint '**/*.{js,ts,tsx}'",
"lint:fix": "npm run lint -- --fix",
"lint:types": "tsc --noEmit",
"check:package": "package-check",
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls",
"test": "jest --config ./scripts/jest/jest.config.js",
"test:coverage": "npm run test -- --coverage",
"test:watch": "npm run test -- --onlyChanged --watch",
"test:web": "TEST_ENV=web npm run test",
"test:server": "TEST_ENV=server npm run test",
"test:native": "TEST_ENV=native npm run test",
"cypress": "cypress run",
"cypress:open": "cypress open",
"cypress:parallel": "cypress-parallel -s cypress -t 4 -d -a",
"prepublishOnly": "npm run lint && npm run lint:types && npm test && npm run build",
"bundlesize": "npm run build:modern && bundlesize",
"start:app": "npm run 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 start",
"changeset": "changeset",
"release": "changeset publish"
},
"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": "<[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.12.8",
"@babel/plugin-transform-runtime": "^7.10.4",
"@changesets/changelog-github": "^0.2.6",
"@changesets/cli": "^2.11.2",
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-replace": "^2.3.4",
"@skypack/package-check": "^0.2.2",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/react-hooks": "^3.3.0",
"@testing-library/react-native": "^5.0.3",
"@types/jest": "^26.0.15",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-native": "^0.63.37",
"@types/react-test-renderer": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.8.2",
"@typescript-eslint/parser": "^4.8.2",
"babel-jest": "^26.6.3",
"bundlesize": "^0.18.0",
"copyfiles": "^2.3.0",
"core-js": "^3.7.0",
"coveralls": "^3.1.0",
"cypress": "6.0.0",
"cypress-parallel": "^0.1.8",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-cypress": "^2.11.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"husky": "^4.3.0",
"jest": "^26.6.3",
"jest-performance-testing": "^1.0.0",
"lint-staged": "^10.5.1",
"metro-react-native-babel-preset": "^0.63.0",
"prettier": "^2.2.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-native": "^0.62.2",
"react-performance-testing": "^1.2.0",
"react-test-renderer": "^17.0.1",
"rimraf": "^3.0.2",
"rollup": "^2.33.3",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2"
},
"bundlesize": [
{
"path": "./dist/index.cjs.production.min.js",
"maxSize": "9.5 kB"
}
],
"peerDependencies": {
"react": "^16.8.0 || ^17"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint:types && lint-staged"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"npm run lint:fix"
],
"*.{md,json,yml}": [
"prettier --write"
]
}
}