|
15 | 15 | "prod": "npm run production", |
16 | 16 | "watch": "NODE_ENV=local ./node_modules/.bin/rollup --config --watch", |
17 | 17 | "lint": "./node_modules/.bin/eslint ./", |
18 | | - "clean": "rm -rf dist" |
| 18 | + "clean": "rm -rf dist", |
| 19 | + "postinstall": "husky install" |
19 | 20 | }, |
20 | 21 | "keywords": [ |
21 | 22 | "react", |
|
31 | 32 | "url": "https://github.com/michaeldzjap/react-signature-pad-wrapper/issues" |
32 | 33 | }, |
33 | 34 | "peerDependencies": { |
34 | | - "react": "^15.5.0 || ^16.0.0 || ^17.0.0", |
35 | | - "react-dom": "^15.5.0 || ^16.0.0 || ^17.0.0" |
| 35 | + "react": "^17.0.1", |
| 36 | + "react-dom": "^17.0.1" |
36 | 37 | }, |
37 | 38 | "devDependencies": { |
38 | 39 | "@babel/core": "^7.11.6", |
|
42 | 43 | "@babel/preset-env": "^7.11.5", |
43 | 44 | "@babel/preset-react": "^7.10.4", |
44 | 45 | "@rollup/plugin-babel": "^5.2.1", |
45 | | - "@rollup/plugin-commonjs": "^16.0.0", |
46 | | - "@rollup/plugin-node-resolve": "^10.0.0", |
| 46 | + "@rollup/plugin-commonjs": "^17.0.0", |
| 47 | + "@rollup/plugin-node-resolve": "^11.0.1", |
| 48 | + "@wojtekmaj/enzyme-adapter-react-17": "^0.4.1", |
47 | 49 | "babel-eslint": "^10.1.0", |
48 | 50 | "babel-jest": "^26.3.0", |
49 | 51 | "babel-plugin-transform-react-remove-prop-types": "^0.4.24", |
50 | 52 | "canvas": "^2.6.1", |
51 | 53 | "enzyme": "^3.11.0", |
52 | | - "enzyme-adapter-react-16": "^1.15.4", |
53 | 54 | "eslint": "^7.8.1", |
54 | | - "eslint-config-prettier": "^6.11.0", |
| 55 | + "eslint-config-prettier": "^8.1.0", |
55 | 56 | "eslint-plugin-eslint-comments": "^3.2.0", |
56 | 57 | "eslint-plugin-import": "^2.22.0", |
57 | 58 | "eslint-plugin-jest": "^24.0.0", |
58 | 59 | "eslint-plugin-prettier": "^3.1.4", |
59 | 60 | "eslint-plugin-react": "^7.20.6", |
60 | | - "husky": "^4.3.0", |
| 61 | + "husky": "^5.1.1", |
61 | 62 | "jest": "^26.4.2", |
62 | 63 | "lint-staged": "^10.3.0", |
63 | 64 | "prettier": "^2.1.1", |
64 | 65 | "prettier-standard": "^16.4.1", |
65 | 66 | "prop-types": "^15.7.2", |
| 67 | + "react": "*", |
| 68 | + "react-dom": "*", |
66 | 69 | "rollup": "^2.26.11", |
67 | 70 | "rollup-plugin-eslint": "^7.0.0", |
68 | | - "rollup-plugin-terser": "^7.0.2", |
69 | | - "rollup-plugin-uglify": "^6.0.4" |
| 71 | + "rollup-plugin-terser": "^7.0.2" |
70 | 72 | }, |
71 | 73 | "dependencies": { |
72 | 74 | "@babel/runtime": "^7.11.2", |
73 | 75 | "signature_pad": "^2.3.2", |
74 | 76 | "throttle-debounce": "^3.0.0" |
75 | 77 | }, |
76 | | - "husky": { |
77 | | - "hooks": { |
78 | | - "pre-commit": "lint-staged" |
79 | | - } |
80 | | - }, |
81 | 78 | "lint-staged": { |
82 | 79 | "*.js": "eslint --cache --fix" |
83 | 80 | } |
|
0 commit comments