-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
116 lines (116 loc) · 3.01 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
{
"name": "hooked-form",
"version": "5.0.0",
"description": "Forms done with React-Hooks",
"author": "jdecroock <decroockjovi@gmail.com> (https://twitter.com/JoviDeC)",
"private": false,
"repository": "https://www.github.com/jovidecroock/hooked-form",
"sideEffects": false,
"scripts": {
"build": "rimraf dist && yarn build:uncompressed",
"build:ci": "microbundle --jsx React.createElement --external react --define process.env.NODE_ENV=production --name hookedForm --output dist",
"build:uncompressed": "microbundle --jsx React.createElement --external react --no-compress --name hookedForm --output dist/",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "cross-env npm run test -- --watch",
"prepublishOnly": "npm run test && npm run build",
"lint": "eslint . --ext .ts,.tsx"
},
"keywords": [
"react",
"forms",
"react-hooks",
"low-bundlesize",
"formmanagement",
"hooks",
"validation"
],
"main": "./dist/hooked-form.js",
"browser": "./dist/hooked-form.umd.js",
"umd:main": "./dist/hooked-form.umd.js",
"jsnext:main": "./dist/hooked-form.modern.js",
"module": "./dist/hooked-form.module.js",
"source": "./src/index.ts",
"syntax": {
"esmodules": "./dist/hooked-form.modern.js"
},
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"browser": "./dist/hooked-form.module.js",
"umd": "./dist/hooked-form.umd.js",
"import": "./dist/hooked-form.module.js",
"require": "./dist/hooked-form.js"
}
},
"license": "MIT",
"devDependencies": {
"@testing-library/react": "9.5.0",
"@types/jest": "24.0.23",
"@types/react": "16.9.23",
"@types/react-dom": "16.9.5",
"@typescript-eslint/eslint-plugin": "2.11.0",
"@typescript-eslint/parser": "2.11.0",
"codecov": "3.7.1",
"cross-env": "5.2.0",
"eslint": "6.7.2",
"eslint-config-prettier": "6.7.0",
"eslint-plugin-react": "7.17.0",
"husky": "3.1.0",
"jest": "24.9.0",
"jest-cli": "24.9.0",
"lint-staged": "9.5.0",
"microbundle": "0.12.2",
"prettier": "1.19.1",
"react": "16.13.0",
"react-dom": "16.13.0",
"rimraf": "2.6.3",
"ts-jest": "24.2.0",
"tslib": "2.0.0",
"typescript": "3.9.6"
},
"dependencies": {},
"peerDependencies": {
"react": ">=16.8.0"
},
"mangle": {
"regex": "^_"
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
},
"lint-staged": {
"*.{json,md}": [
"prettier --write",
"git add"
],
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/__tests__/setup.js"
],
"preset": "ts-jest",
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"testMatch": [
"<rootDir>/__tests__/**/*.(test|spec).ts?(x)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
]
}
}