|
3 | 3 | "version": "1.0.1", |
4 | 4 | "description": "Observe multiple React components with a single ResizeObserver.", |
5 | 5 | "main": "dist/index.js", |
| 6 | + "types": "dist/index.d.ts", |
6 | 7 | "scripts": { |
7 | | - "build": "babel src/ -d dist/ --source-maps", |
| 8 | + "build": "tsc -b", |
8 | 9 | "prepare": "npm run build" |
9 | 10 | }, |
10 | 11 | "repository": { |
11 | 12 | "type": "git", |
12 | 13 | "url": "git+https://github.com/envato/react-resize-observer-hook.git" |
13 | 14 | }, |
14 | 15 | "keywords": [ |
| 16 | + "resize-observer", |
15 | 17 | "react-hooks", |
16 | 18 | "hooks", |
17 | 19 | "react", |
18 | | - "performance", |
19 | | - "resize-observer" |
| 20 | + "performance" |
20 | 21 | ], |
21 | | - "author": "Envato", |
| 22 | + |
22 | 23 | "license": "MIT", |
23 | 24 | "bugs": { |
24 | 25 | "url": "https://github.com/envato/react-resize-observer-hook/issues" |
25 | 26 | }, |
26 | 27 | "homepage": "https://github.com/envato/react-resize-observer-hook#readme", |
27 | 28 | "peerDependencies": { |
28 | | - "react": ">=16.8.0", |
29 | | - "react-dom": ">=16.8.0" |
| 29 | + "react": "16.8 - 17", |
| 30 | + "react-dom": "16.8 - 17" |
30 | 31 | }, |
31 | 32 | "devDependencies": { |
32 | | - "@babel/cli": "^7.8.4", |
33 | | - "@babel/core": "^7.8.6", |
34 | | - "@babel/preset-env": "^7.7.7", |
35 | | - "@babel/preset-react": "^7.8.3", |
| 33 | + "@types/react": "^17.0.0", |
| 34 | + "@typescript-eslint/eslint-plugin": "^4.13.0", |
| 35 | + "@typescript-eslint/parser": "^4.13.0", |
| 36 | + "babel-eslint": "^10.1.0", |
| 37 | + "eslint": "^7.17.0", |
| 38 | + "eslint-config-react-app": "^6.0.0", |
| 39 | + "eslint-plugin-flowtype": "^5.2.0", |
| 40 | + "eslint-plugin-import": "^2.22.1", |
| 41 | + "eslint-plugin-jsx-a11y": "^6.4.1", |
| 42 | + "eslint-plugin-react": "^7.22.0", |
| 43 | + "eslint-plugin-react-hooks": "^4.2.0", |
36 | 44 | "husky": "^4.3.7", |
37 | 45 | "lint-staged": "^10.5.3", |
38 | 46 | "prettier": "^2.2.1", |
39 | 47 | "react": "^17.0.1", |
40 | | - "react-dom": "^17.0.1" |
| 48 | + "react-dom": "^17.0.1", |
| 49 | + "typescript": "^4.2.2" |
41 | 50 | }, |
42 | 51 | "eslintConfig": { |
43 | 52 | "extends": "react-app" |
|
0 commit comments