diff --git a/package.json b/package.json index 0102f3b9..4b415f26 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/researchgate/react-intersection-list/issues" }, "dependencies": { - "@researchgate/react-intersection-observer": "^0.2.0", + "@researchgate/react-intersection-observer": "^0.3.0", "prop-types": "^15.5.10", "rimraf": "^2.6.1", "warning": "^3.0.0" @@ -39,26 +39,12 @@ "validate-commit-msg": "^2.14.0", "whatwg-fetch": "^2.0.3" }, - "files": [ - "lib" - ], + "files": ["lib"], "homepage": "https://github.com/researchgate/react-intersection-list#readme", - "keywords": [ - "Intersection", - "Observer", - "react", - "component", - "list", - "infinite", - "scrollable", - "researchgate" - ], + "keywords": ["Intersection", "Observer", "react", "component", "list", "infinite", "scrollable", "researchgate"], "license": "MIT", "lint-staged": { - "{src,docs/docs}/**/*.js": [ - "eslint --fix", - "git add" - ] + "{src,docs/docs}/**/*.js": ["eslint --fix", "git add"] }, "main": "lib/js/index.js", "module": "lib/es/index.js", @@ -72,14 +58,14 @@ }, "jest": { "rootDir": "src", - "testMatch": [ - "**/__tests__/**/*.spec.js" - ] + "testMatch": ["**/__tests__/**/*.spec.js"] }, "scripts": { "build": "npm run build:js && npm run build:es", - "build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files", - "build:es": "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files", + "build:js": + "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src --out-dir lib/js --ignore __tests__ --copy-files", + "build:es": + "cross-env BABEL_ENV=production BABEL_OUTPUT=esm babel src --out-dir lib/es --ignore __tests__ --copy-files", "build:storybook": "build-storybook --output-dir docs", "create-github-release": "conventional-github-releaser -p angular", "clear": "rimraf ./lib", diff --git a/yarn.lock b/yarn.lock index 9f825552..ef183235 100644 --- a/yarn.lock +++ b/yarn.lock @@ -38,9 +38,12 @@ eslint-config-prettier "^2.4.0" eslint-plugin-react "^7.3.0" -"@researchgate/react-intersection-observer@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@researchgate/react-intersection-observer/-/react-intersection-observer-0.2.0.tgz#f4a16a0dcaa660f0bf1c1801d2fb37e0a6900e21" +"@researchgate/react-intersection-observer@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@researchgate/react-intersection-observer/-/react-intersection-observer-0.3.0.tgz#c186a5e48993a6ab7d829150b8ad1361c0d9dda0" + dependencies: + prop-types "^15.5.10 || ^16.0.0" + rimraf "^2.6.1" "@storybook/addon-actions@^3.2.6": version "3.2.6" @@ -5697,7 +5700,7 @@ prop-types@15.5.8: dependencies: fbjs "^0.8.9" -prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.6, prop-types@^15.5.8, prop-types@^15.5.9: +prop-types@^15.5.10, "prop-types@^15.5.10 || ^16.0.0", prop-types@^15.5.4, prop-types@^15.5.6, prop-types@^15.5.8, prop-types@^15.5.9: version "15.5.10" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154" dependencies: