-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) · 1.81 KB
/
Copy pathpackage.json
File metadata and controls
65 lines (65 loc) · 1.81 KB
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
{
"name": "@kne/react-form",
"version": "2.2.3",
"syntax": {
"esmodules": true
},
"description": "用于表单验证的react组件",
"author": "linzp",
"license": "MIT",
"repository": "https://github.com/kne-union/react-form",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"source": "src/index.js",
"engines": {
"node": ">=10"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss}": [
"prettier --write"
]
},
"scripts": {
"init-example": "modules-dev-libs-init",
"start": "run-p start:lib start:example",
"build": "run-s build:lib build:example",
"build:lib": "microbundle --no-compress --format modern,cjs --jsx React.createElement",
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsx React.createElement",
"test": "run-s test:unit test:lint test:build",
"test:build": "run-s build",
"test:lint": "eslint .",
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"build:example": "cd example && npm run build",
"start:example": "cd example && npm run start",
"lint-staged": "lint-staged",
"prepare": "husky install"
},
"peerDependencies": {
"prop-types": ">=15.x",
"react": ">=16.x",
"react-dom": ">=16.x"
},
"dependencies": {
"@babel/runtime": "^7.7.7",
"@kne/compose": "^0.1.0",
"@kne/use-event": "^0.1.2",
"lodash": "^4.17.20",
"use-debounce": "^9.0.3"
},
"devDependencies": {
"@craco/craco": "^7.1.0",
"@kne/microbundle": "^0.15.4",
"@kne/modules-dev": "^2.0.2",
"cross-env": "^7.0.2",
"husky": "^9.0.10",
"lint-staged": "^15.2.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"files": [
"dist"
]
}