/
package.json
86 lines (86 loc) · 2.21 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
{
"private": false,
"name": "react-undo-component",
"version": "1.0.1",
"description": "React状态控制组件",
"homepage": "https://food-billboard.github.io/react-undo-component/",
"scripts": {
"preinstall": "npx only-allow yarn",
"prepare": "husky install",
"_postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"start": "dumi dev",
"docs:build": "dumi build",
"docs:deploy": "gh-pages -d docs-dist",
"build": "cross-env BUILD_TYPE=lib father-build && cross-env BUILD_TYPE=es father-build && cross-env BUILD_TYPE=umd father-build",
"deploy": "np --no-2fa",
"release": "npm run build && npm publish",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
"test": "umi-test",
"test:coverage": "umi-test --coverage --passWithNoTests"
},
"keywords": [
"redo",
"undo",
"react",
"component",
"wrapper"
],
"repository": {
"type": "git",
"url": "git+https://github.com/food-billboard/react-undo-component"
},
"files": [
"es/",
"lib/",
"dist/"
],
"jest": {
"setupFilesAfterEnv": [
"./jest-setup-test.js"
]
},
"main": "lib/index.js",
"module": "es/index.js",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"peerDependencies": {
"react": "^16.12.0 || ^17.0.0"
},
"dependencies": {
"@babel/runtime": "^7.16.3"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-angular": "^15.0.0",
"@types/jest": "^27.0.3",
"@umijs/test": "^3.0.5",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dumi": "^1.0.17",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint-plugin-react-hooks": "^4.3.0",
"father-build": "^1.17.2",
"gh-pages": "^3.2.3",
"husky": "^7.0.4",
"lint-staged": "^10.0.7",
"pinst": "^2.1.6",
"prettier": "^2.5.0",
"react": "16.14.0",
"react-dom": "16.14.0",
"yorkie": "^2.0.0"
}
}