|
2 | 2 | "name": "react-share",
|
3 | 3 | "version": "1.19.0",
|
4 | 4 | "description": "Easy social media share buttons and share counts.",
|
5 |
| - "main": "./lib/react-share.js", |
| 5 | + "main": "./lib/index.js", |
| 6 | + "module": "./es/index.js", |
6 | 7 | "engines": {
|
7 | 8 | "node": ">=4.0.0",
|
8 | 9 | "npm": ">=3.0.0"
|
9 | 10 | },
|
10 | 11 | "scripts": {
|
11 |
| - "build": "npm run lint && npm run build-src && npm run build-demos", |
12 |
| - "build-src": "babel ./src --out-dir ./lib", |
13 |
| - "build-demos": "NODE_ENV=production webpack -p --config webpack.demos.config.js", |
14 |
| - "run-demos": "NODE_ENV=development webpack-dev-server --config webpack.demos.config.js --content-base demos/ --progress --colors", |
15 |
| - "lint": "eslint --ext .jsx ./src ./demos", |
| 12 | + "build": "npm run lint && npm run build:commonjs && npm run build:es && npm run build-demos", |
| 13 | + "build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel ./src --out-dir ./lib", |
| 14 | + "build:es": "rimraf ./es && cross-env BABEL_ENV=es babel ./src --out-dir ./es", |
| 15 | + "build-demos": "webpack -p --config webpack.demos.config.js", |
| 16 | + "run-demos": "webpack-dev-server --hot --config webpack.demos.config.js --content-base demos/ --progress", |
| 17 | + "lint": "eslint --ext .jsx --ext .js ./src ./demos", |
16 | 18 | "prepublish": "npm run build",
|
17 | 19 | "start": "npm run run-demos"
|
18 | 20 | },
|
|
38 | 40 | },
|
39 | 41 | "license": "MIT",
|
40 | 42 | "devDependencies": {
|
41 |
| - "babel-cli": "6.18.0", |
42 |
| - "babel-core": "6.18.2", |
43 |
| - "babel-eslint": "7.1.1", |
44 |
| - "babel-loader": "6.2.10", |
45 |
| - "babel-plugin-transform-class-properties": "6.18.0", |
46 |
| - "babel-plugin-transform-runtime": "6.15.0", |
47 |
| - "babel-preset-airbnb": "1.1.1", |
48 |
| - "babel-preset-es2015": "6.18.0", |
49 |
| - "babel-preset-react": "6.16.0", |
50 |
| - "babel-preset-stage-0": "6.16.0", |
51 |
| - "eslint": "2.13.1", |
52 |
| - "eslint-config-airbnb": "7.0.0", |
53 |
| - "eslint-loader": "1.6.3", |
54 |
| - "eslint-plugin-jsx-a11y": "0.6.2", |
55 |
| - "eslint-plugin-react": "4.3.0", |
56 |
| - "file-loader": "0.9.0", |
| 43 | + "babel-cli": "6.26.0", |
| 44 | + "babel-core": "6.26.0", |
| 45 | + "babel-eslint": "8.1.2", |
| 46 | + "babel-loader": "7.1.2", |
| 47 | + "babel-plugin-transform-class-properties": "6.24.1", |
| 48 | + "babel-plugin-transform-object-rest-spread": "6.26.0", |
| 49 | + "babel-plugin-transform-react-jsx": "^6.24.1", |
| 50 | + "babel-plugin-transform-runtime": "6.23.0", |
| 51 | + "babel-preset-env": "1.6.1", |
| 52 | + "cross-env": "5.1.3", |
| 53 | + "eslint": "4.14.0", |
| 54 | + "eslint-config-airbnb": "16.1.0", |
| 55 | + "eslint-loader": "1.9.0", |
| 56 | + "eslint-plugin-import": "2.8.0", |
| 57 | + "eslint-plugin-jsx-a11y": "6.0.3", |
| 58 | + "eslint-plugin-react": "7.5.1", |
| 59 | + "file-loader": "1.1.6", |
57 | 60 | "react": "15.5.4",
|
58 | 61 | "react-dom": "15.5.4",
|
59 |
| - "react-hot-loader": "1.3.1", |
60 |
| - "url-loader": "0.5.8", |
61 |
| - "webpack": "1.13.3", |
62 |
| - "webpack-dev-server": "1.16.3" |
| 62 | + "react-hot-loader": "^3.1.3", |
| 63 | + "rimraf": "^2.6.2", |
| 64 | + "url-loader": "0.6.2", |
| 65 | + "webpack": "3.10.0", |
| 66 | + "webpack-dev-server": "2.9.7" |
63 | 67 | },
|
64 | 68 | "dependencies": {
|
65 | 69 | "babel-runtime": "^6.6.1",
|
|
0 commit comments