|
3 | 3 | "version": "2.0.0",
|
4 | 4 | "description": "Accessible modal dialog component for React.JS",
|
5 | 5 | "main": "./lib/index.js",
|
| 6 | + "module": "./es/index.js", |
| 7 | + "jsnext:main": "./es/index.js", |
6 | 8 | "repository": {
|
7 | 9 | "type": "git",
|
8 | 10 | "url": "https://github.com/reactjs/react-modal.git"
|
|
15 | 17 | "scripts": {
|
16 | 18 | "start": "./node_modules/.bin/webpack-dev-server --inline --host 127.0.0.1 --content-base examples/",
|
17 | 19 | "test": "cross-env NODE_ENV=test karma start",
|
18 |
| - "lint": "eslint lib/" |
| 20 | + "lint": "eslint lib/", |
| 21 | + "clean": "rimraf lib es", |
| 22 | + "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", |
| 23 | + "build:es": "cross-env BABEL_ENV=es babel src --out-dir es", |
| 24 | + "build": "npm run clean && npm run build:commonjs && npm run build:es" |
19 | 25 | },
|
20 | 26 | "authors": [
|
21 | 27 | "Ryan Florence"
|
22 | 28 | ],
|
23 | 29 | "license": "MIT",
|
24 | 30 | "devDependencies": {
|
25 |
| - "babel-core": "^6.7.4", |
| 31 | + "babel-cli": "^6.24.1", |
| 32 | + "babel-core": "^6.25.0", |
26 | 33 | "babel-eslint": "^7.1.1",
|
27 | 34 | "babel-loader": "^6.2.4",
|
28 |
| - "babel-preset-es2015": "^6.6.0", |
29 |
| - "babel-preset-react": "^6.5.0", |
30 |
| - "babel-preset-stage-2": "^6.24.1", |
| 35 | + "babel-plugin-transform-class-properties": "^6.24.1", |
| 36 | + "babel-plugin-transform-object-rest-spread": "^6.23.0", |
| 37 | + "babel-preset-env": "^1.5.2", |
| 38 | + "babel-preset-react": "^6.24.1", |
31 | 39 | "codeclimate-test-reporter": "^0.4.0",
|
32 | 40 | "coveralls": "^2.13.1",
|
33 | 41 | "cross-env": "^5.0.1",
|
|
55 | 63 | "react-addons-test-utils": "^15.0.0",
|
56 | 64 | "react-dom": "^15.0.0",
|
57 | 65 | "rf-release": "0.4.0",
|
58 |
| - "rimraf": "^2.5.4", |
| 66 | + "rimraf": "^2.6.1", |
59 | 67 | "sinon": "next",
|
60 | 68 | "uglify-js": "2.4.24",
|
61 | 69 | "webpack": "^1.12.14",
|
|
0 commit comments