|
1 | 1 | { |
2 | 2 | "name": "@researchgate/react-intersection-observer", |
3 | 3 | "description": "React component for the Intersection Observer API", |
4 | | - "version": "0.4.0", |
| 4 | + "version": "0.5.0", |
5 | 5 | "author": "Luis Merino <[email protected]>", |
6 | 6 | "bugs": { |
7 | 7 | "url": "https://github.com/researchgate/react-intersection-observer/issues" |
|
44 | 44 | "style-loader": "^0.19.0", |
45 | 45 | "validate-commit-msg": "^2.14.0" |
46 | 46 | }, |
47 | | - "files": ["lib"], |
| 47 | + "files": [ |
| 48 | + "lib" |
| 49 | + ], |
48 | 50 | "homepage": "https://github.com/researchgate/react-intersection-observer#readme", |
49 | | - "keywords": ["Intersection", "Observer", "react", "component", "viewport", "visible", "invisible", "researchgate"], |
| 51 | + "keywords": [ |
| 52 | + "Intersection", |
| 53 | + "Observer", |
| 54 | + "react", |
| 55 | + "component", |
| 56 | + "viewport", |
| 57 | + "visible", |
| 58 | + "invisible", |
| 59 | + "researchgate" |
| 60 | + ], |
50 | 61 | "license": "MIT", |
51 | 62 | "lint-staged": { |
52 | | - "{src,docs/docs}/**/*.js": ["eslint --fix", "git add"] |
| 63 | + "{src,docs/docs}/**/*.js": [ |
| 64 | + "eslint --fix", |
| 65 | + "git add" |
| 66 | + ] |
53 | 67 | }, |
54 | 68 | "main": "lib/js/index.js", |
55 | 69 | "module": "lib/es/index.js", |
|
63 | 77 | }, |
64 | 78 | "jest": { |
65 | 79 | "rootDir": "src", |
66 | | - "testMatch": ["**/__tests__/**/*.spec.js"], |
67 | | - "setupFiles": ["raf/polyfill"] |
| 80 | + "testMatch": [ |
| 81 | + "**/__tests__/**/*.spec.js" |
| 82 | + ], |
| 83 | + "setupFiles": [ |
| 84 | + "raf/polyfill" |
| 85 | + ] |
68 | 86 | }, |
69 | 87 | "scripts": { |
70 | 88 | "build": "yarn build:js && yarn build:es", |
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", |
| 89 | + "build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files", |
| 90 | + "build:es": "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files", |
75 | 91 | "build:storybook": "build-storybook --output-dir docs", |
76 | 92 | "clear": "rimraf ./lib", |
77 | 93 | "commitmsg": "validate-commit-msg", |
|
0 commit comments