|
8 | 8 | }, |
9 | 9 | "dependencies": { |
10 | 10 | "invariant": "^2.2.2", |
11 | | - "prop-types": "^15.5.10" |
| 11 | + "prop-types": "^15.6.0" |
12 | 12 | }, |
13 | 13 | "devDependencies": { |
14 | 14 | "@researchgate/babel-preset-rg": "^1.0.1", |
15 | | - "@researchgate/eslint-config-rg-react": "^1.0.0", |
16 | | - "@storybook/addon-actions": "^3.2.0", |
17 | | - "@storybook/addon-options": "^3.2.4", |
18 | | - "@storybook/react": "^3.2.8", |
| 15 | + "@researchgate/eslint-config-rg-react": "^1.0.1", |
| 16 | + "@storybook/addon-actions": "^3.2.16", |
| 17 | + "@storybook/addon-options": "^3.2.16", |
| 18 | + "@storybook/react": "^3.2.16", |
19 | 19 | "babel-cli": "^6.24.1", |
20 | | - "babel-eslint": "^8.0.0", |
21 | | - "babel-jest": "^21.0.0", |
| 20 | + "babel-eslint": "^8.0.2", |
| 21 | + "babel-jest": "^21.2.0", |
22 | 22 | "babel-polyfill": "^6.26.0", |
23 | 23 | "conventional-github-releaser": "^2.0.0", |
24 | | - "cross-env": "^5.0.5", |
| 24 | + "cross-env": "^5.1.1", |
25 | 25 | "css-loader": "^0.28.4", |
26 | | - "eslint": "^4.6.1", |
27 | | - "eslint-config-prettier": "^2.4.0", |
28 | | - "eslint-plugin-import": "^2.7.0", |
| 26 | + "eslint": "^4.11.0", |
| 27 | + "eslint-config-prettier": "^2.8.0", |
| 28 | + "eslint-plugin-import": "^2.8.0", |
29 | 29 | "eslint-plugin-prettier": "^2.3.0", |
30 | | - "eslint-plugin-react": "^7.3.0", |
| 30 | + "eslint-plugin-react": "^7.5.1", |
31 | 31 | "husky": "^0.14.3", |
32 | | - "intersection-observer": "^0.4.2", |
33 | | - "jest": "^21.0.2", |
| 32 | + "intersection-observer": "^0.4.3", |
| 33 | + "jest": "^21.2.1", |
34 | 34 | "lint-staged": "^5.0.0", |
35 | | - "prettier": "^1.6.1", |
| 35 | + "prettier": "^1.8.2", |
| 36 | + "raf": "^3.4.0", |
36 | 37 | "raw-loader": "^1.0.0-beta.0", |
37 | | - "react": "^15.4.0", |
38 | | - "react-dom": "^15.4.0", |
39 | | - "react-test-renderer": "^15.6.1", |
| 38 | + "react": "^16.1.1", |
| 39 | + "react-dom": "^16.1.1", |
| 40 | + "react-test-renderer": "^16.1.1", |
40 | 41 | "rimraf": "^2.6.1", |
41 | 42 | "standard-version": "^4.2.0", |
42 | | - "storybook-readme": "^3.0.6", |
| 43 | + "storybook-readme": "^3.1.1", |
43 | 44 | "style-loader": "^0.19.0", |
44 | 45 | "validate-commit-msg": "^2.14.0" |
45 | 46 | }, |
46 | | - "files": [ |
47 | | - "lib" |
48 | | - ], |
| 47 | + "files": ["lib"], |
49 | 48 | "homepage": "https://github.com/researchgate/react-intersection-observer#readme", |
50 | | - "keywords": [ |
51 | | - "Intersection", |
52 | | - "Observer", |
53 | | - "react", |
54 | | - "component", |
55 | | - "viewport", |
56 | | - "visible", |
57 | | - "invisible", |
58 | | - "researchgate" |
59 | | - ], |
| 49 | + "keywords": ["Intersection", "Observer", "react", "component", "viewport", "visible", "invisible", "researchgate"], |
60 | 50 | "license": "MIT", |
61 | 51 | "lint-staged": { |
62 | | - "{src,docs/docs}/**/*.js": [ |
63 | | - "eslint --fix", |
64 | | - "git add" |
65 | | - ] |
| 52 | + "{src,docs/docs}/**/*.js": ["eslint --fix", "git add"] |
66 | 53 | }, |
67 | 54 | "main": "lib/js/index.js", |
68 | 55 | "module": "lib/es/index.js", |
69 | 56 | "peerDependencies": { |
70 | | - "react": "^15.4.0", |
71 | | - "react-dom": "^15.4.0" |
| 57 | + "react": "^15.4.0 | ^16.1.1", |
| 58 | + "react-dom": "^15.4.0 | ^16.1.1" |
72 | 59 | }, |
73 | 60 | "repository": { |
74 | 61 | "type": "git", |
75 | 62 | "url": "https://github.com/researchgate/react-intersection-observer" |
76 | 63 | }, |
77 | 64 | "jest": { |
78 | 65 | "rootDir": "src", |
79 | | - "testMatch": [ |
80 | | - "**/__tests__/**/*.spec.js" |
81 | | - ] |
| 66 | + "testMatch": ["**/__tests__/**/*.spec.js"], |
| 67 | + "setupFiles": ["raf/polyfill"] |
82 | 68 | }, |
83 | 69 | "scripts": { |
84 | 70 | "build": "yarn build:js && yarn build:es", |
85 | | - "build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files", |
86 | | - "build:es": "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files", |
| 71 | + "build:js": |
| 72 | + "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files", |
| 73 | + "build:es": |
| 74 | + "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files", |
87 | 75 | "build:storybook": "build-storybook --output-dir docs", |
88 | 76 | "clear": "rimraf ./lib", |
89 | 77 | "commitmsg": "validate-commit-msg", |
|
0 commit comments