|
7 | 7 | "type": "git", |
8 | 8 | "url": "https://github.com/mohsinulhaq/react-popper-tooltip" |
9 | 9 | }, |
10 | | - "main": "lib/cjs/index.js", |
| 10 | + "browser": "lib/cjs/index.js", |
11 | 11 | "module": "lib/esm/index.js", |
| 12 | + "unpkg": "dist/index.js", |
| 13 | + "style": "dist/styles.css", |
12 | 14 | "typings": "typings/react-popper-tooltip.d.ts", |
13 | 15 | "files": [ |
14 | 16 | "lib", |
15 | 17 | "dist", |
16 | 18 | "typings/react-popper-tooltip.d.ts" |
17 | 19 | ], |
18 | 20 | "scripts": { |
19 | | - "build": "yarn build:cjs; yarn build:esm; mkdir -p dist && cp src/styles.css dist", |
20 | | - "build:cjs": "babel --delete-dir-on-start src -d lib/cjs", |
21 | | - "build:esm": "babel --delete-dir-on-start --env-name esm src -d lib/esm", |
22 | | - "prepublishOnly": "yarn lint && yarn build && yarn docs:deploy", |
| 21 | + "build": "rimraf dist lib && rollup -c && cp src/styles.css dist", |
| 22 | + "prepublishOnly": "yarn lint && yarn build", |
23 | 23 | "docs": "docz dev", |
24 | 24 | "docs:build": "docz build", |
25 | 25 | "docs:deploy": "yarn docs:build && cp .docz/dist/index.html .docz/dist/404.html && gh-pages -d .docz/dist", |
|
101 | 101 | }, |
102 | 102 | "dependencies": { |
103 | 103 | "@babel/runtime": "^7.0.0", |
| 104 | + "prop-types": "^15.6.2", |
104 | 105 | "react-popper": "^1.0.2" |
105 | 106 | }, |
106 | 107 | "devDependencies": { |
|
121 | 122 | "gh-pages": "^2.0.0", |
122 | 123 | "pre-commit": "^1.2.2", |
123 | 124 | "prettier": "^1.14.3", |
124 | | - "prop-types": "^15.6.2", |
125 | 125 | "react": "^16.5.2", |
126 | | - "react-dom": "^16.5.2" |
127 | | - } |
| 126 | + "react-dom": "^16.5.2", |
| 127 | + "rimraf": "^2.6.2", |
| 128 | + "rollup": "^0.66.2", |
| 129 | + "rollup-plugin-babel": "^4.0.3", |
| 130 | + "rollup-plugin-commonjs": "^9.1.8", |
| 131 | + "rollup-plugin-node-resolve": "^3.4.0", |
| 132 | + "rollup-plugin-size-snapshot": "^0.7.0", |
| 133 | + "rollup-plugin-terser": "^3.0.0" |
| 134 | + }, |
| 135 | + "sideEffects": false |
128 | 136 | } |
0 commit comments