|
2 | 2 | "name": "@planjs/react-utils",
|
3 | 3 | "version": "0.0.1",
|
4 | 4 | "description": "React tool collection",
|
| 5 | + "keywords": [], |
| 6 | + "homepage": "https://github.com/planjs/react-utils#readme", |
| 7 | + "bugs": { |
| 8 | + "url": "https://github.com/planjs/react-utils/issues" |
| 9 | + }, |
| 10 | + "repository": { |
| 11 | + "type": "git", |
| 12 | + "url": "git+https://github.com/planjs/react-utils.git" |
| 13 | + }, |
| 14 | + "license": "MIT", |
| 15 | + "author": { |
| 16 | + "name": "fupengl", |
| 17 | + |
| 18 | + "url": "https://github.com/fupengl" |
| 19 | + }, |
5 | 20 | "sideEffects": false,
|
6 | 21 | "main": "lib/index.js",
|
7 | 22 | "module": "es/index.js",
|
8 |
| - "umd:main": "lib/index.umd.js", |
9 |
| - "unpkg": "lib/index.umd.min.js", |
10 | 23 | "typings": "typings/index.d.ts",
|
11 | 24 | "files": [
|
12 | 25 | "lib",
|
13 | 26 | "es",
|
14 |
| - "dist", |
15 | 27 | "typings"
|
16 | 28 | ],
|
17 | 29 | "scripts": {
|
|
22 | 34 | "lint:fix": "eslint --fix --ext js,jsx,ts,tsx src",
|
23 | 35 | "test": "jest"
|
24 | 36 | },
|
25 |
| - "repository": { |
26 |
| - "type": "git", |
27 |
| - "url": "git+https://github.com/planjs/react-utils.git" |
| 37 | + "husky": { |
| 38 | + "hooks": { |
| 39 | + "pre-commit": "lint-staged", |
| 40 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 41 | + } |
28 | 42 | },
|
29 |
| - "keywords": [], |
30 |
| - "author": { |
31 |
| - "name": "fupengl", |
32 |
| - |
33 |
| - "url": "https://github.com/fupengl" |
| 43 | + "commitlint": { |
| 44 | + "extends": [ |
| 45 | + "@commitlint/config-conventional" |
| 46 | + ] |
34 | 47 | },
|
35 |
| - "license": "MIT", |
36 |
| - "bugs": { |
37 |
| - "url": "https://github.com/planjs/react-utils/issues" |
| 48 | + "lint-staged": { |
| 49 | + "*.{js,ts,tsx}": [ |
| 50 | + "eslint --fix", |
| 51 | + "git add" |
| 52 | + ], |
| 53 | + "*.{json,json,css,scss}": [ |
| 54 | + "prettier --write", |
| 55 | + "git add" |
| 56 | + ], |
| 57 | + "package.json": [ |
| 58 | + "npx sort-package-json", |
| 59 | + "git add" |
| 60 | + ] |
38 | 61 | },
|
39 |
| - "homepage": "https://github.com/planjs/react-utils#readme", |
40 |
| - "publishConfig": { |
41 |
| - "access": "public" |
| 62 | + "config": { |
| 63 | + "commitizen": { |
| 64 | + "path": "./node_modules/cz-conventional-changelog" |
| 65 | + } |
42 | 66 | },
|
43 | 67 | "dependencies": {
|
44 |
| - "fast-deep-equal": "^3.1.3", |
45 | 68 | "@babel/runtime": "^7.12.5",
|
46 | 69 | "@planjs/utils": "^1.8.4",
|
| 70 | + "fast-deep-equal": "^3.1.3", |
47 | 71 | "resize-observer-polyfill": "^1.5.1"
|
48 | 72 | },
|
49 | 73 | "devDependencies": {
|
| 74 | + "@commitlint/cli": "^9.1.2", |
| 75 | + "@commitlint/config-conventional": "^11.0.0", |
50 | 76 | "@planjs/fabric": "^0.0.76",
|
51 |
| - "typescript": "4.1.5", |
52 |
| - "stan-builder": "^0.9.13", |
53 |
| - "react": "16.14.0", |
54 |
| - "react-dom": "16.14.0", |
55 |
| - "@types/node": "^16.3.3", |
56 |
| - "@types/react": "^16.9.56", |
57 |
| - "@types/react-dom": "^16.9.14", |
58 | 77 | "@testing-library/react": "^12.0.0",
|
59 | 78 | "@testing-library/react-hooks": "^7.0.1",
|
60 | 79 | "@types/jest": "^26.0.24",
|
| 80 | + "@types/node": "^16.3.3", |
| 81 | + "@types/react": "^16.9.56", |
| 82 | + "@types/react-dom": "^16.9.14", |
| 83 | + "husky": "^4.2.5", |
61 | 84 | "jest": "^27.0.6",
|
| 85 | + "lint-staged": "^10.2.13", |
| 86 | + "react": "16.14.0", |
| 87 | + "react-dom": "16.14.0", |
| 88 | + "stan-builder": "^0.9.14", |
| 89 | + "standard-version": "^9.0.0", |
62 | 90 | "ts-jest": "^27.0.3",
|
63 |
| - "standard-version": "^9.0.0" |
| 91 | + "typescript": "4.1.5" |
64 | 92 | },
|
65 | 93 | "peerDependencies": {
|
66 | 94 | "react": ">16.8.0",
|
67 | 95 | "react-dom": ">16.8.0"
|
| 96 | + }, |
| 97 | + "publishConfig": { |
| 98 | + "access": "public" |
68 | 99 | }
|
69 | 100 | }
|
0 commit comments