|
2 | 2 | "name": "react-infinite-scroll-component", |
3 | 3 | "version": "4.5.3", |
4 | 4 | "description": "An Infinite Scroll component in react.", |
5 | | - "main": "lib/index.js", |
| 5 | + "source": "src/index.tsx", |
| 6 | + "main": "dist/index.js", |
| 7 | + "module": "dist/index.mjs", |
| 8 | + "unpkg": "dist/index.umd.js", |
6 | 9 | "scripts": { |
7 | | - "dev": "NODE_ENV=development node server.js", |
8 | | - "build-demos": "NODE_ENV=development node_modules/.bin/webpack", |
9 | | - "test": "echo \"Error: no test specified\" && exit 1", |
10 | | - "sprepublish": "NODE_ENV=production node_modules/.bin/webpack --config webpack.config.js" |
11 | | - }, |
12 | | - "directories": { |
13 | | - "demos": "demos" |
| 10 | + "build": "microbundle" |
14 | 11 | }, |
15 | 12 | "repository": { |
16 | 13 | "type": "git", |
|
31 | 28 | }, |
32 | 29 | "homepage": "https://github.com/ankeetmaini/react-infinite-scroll-component#readme", |
33 | 30 | "peerDependencies": { |
34 | | - "prop-types": "^15.0.0", |
35 | | - "react": ">=0.14.0" |
| 31 | + "react": ">=16.0.0" |
36 | 32 | }, |
37 | 33 | "devDependencies": { |
| 34 | + "@types/react": "^16.9.2", |
38 | 35 | "@types/react-dom": "^16.9.1", |
39 | | - "babel": "^6.23.0", |
40 | | - "babel-core": "^6.26.3", |
41 | | - "babel-eslint": "^10.0.3", |
42 | | - "babel-loader": "7", |
43 | | - "eslint-plugin-react": "^3.5.1", |
44 | | - "html-loader": "^0.4.3", |
45 | | - "html-webpack-plugin": "^3.2.0", |
46 | | - "prop-types": "~15.5.8", |
| 36 | + "@types/throttle-debounce": "^2.1.0", |
| 37 | + "microbundle": "^0.11.0", |
47 | 38 | "react": "~15.5.4", |
48 | | - "react-dom": "~15.5.4", |
49 | | - "react-hot-loader": "^1.3.0", |
50 | | - "ts-loader": "^6.1.2", |
51 | | - "typescript": "^3.6.3", |
52 | | - "webpack": "^4.41.0", |
53 | | - "webpack-cli": "^3.3.9", |
54 | | - "webpack-dev-server": "^1.10.1", |
55 | | - "webpack-hot-middleware": "^2.10.0" |
| 39 | + "typescript": "^3.6.3" |
56 | 40 | }, |
57 | 41 | "dependencies": { |
58 | | - "@types/prop-types": "^15.7.2", |
59 | | - "@types/react": "^16.9.2", |
60 | | - "@types/throttle-debounce": "^2.1.0", |
61 | 42 | "throttle-debounce": "^2.1.0" |
62 | 43 | } |
63 | 44 | } |
0 commit comments