|
10 | 10 | "flow": "flow", |
11 | 11 | "flow:coverage": "for file in src/**.js test/**.js; do echo $file; flow coverage $file; done", |
12 | 12 | "flow:watch": "flow-watch -e js,js.flow,flowconfig --ignore lib/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/", |
13 | | - "build": "rimraf lib && babel src --out-dir lib && flow-copy-source -v src/ lib", |
14 | | - "test": "NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha", |
| 13 | + "build": "rimraf lib && BABEL_ENV=production babel src --out-dir lib && flow-copy-source -v src/ lib && rimraf es5 && BABEL_ENV=es5 babel src --out-dir es5 && flow-copy-source -v src/ es5", |
| 14 | + "test": "NODE_ENV=production BABEL_ENV=es5 mocha $npm_package_config_mocha && NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha", |
15 | 15 | "test:watch": "mocha --watch $npm_package_config_mocha", |
16 | 16 | "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", |
17 | 17 | "commitmsg": "commitlint -e $GIT_PARAMS", |
|
68 | 68 | "babel-plugin-flow-react-proptypes": "^17.0.0", |
69 | 69 | "babel-plugin-istanbul": "^4.0.0", |
70 | 70 | "babel-plugin-transform-react-constant-elements": "^6.9.1", |
71 | | - "babel-plugin-transform-runtime": "^6.22.0", |
72 | | - "babel-preset-es2015": "^6.22.0", |
| 71 | + "babel-plugin-transform-runtime": "^6.23.0", |
| 72 | + "babel-preset-env": "^1.7.0", |
73 | 73 | "babel-preset-flow": "^6.23.0", |
74 | 74 | "babel-preset-react": "^6.16.0", |
75 | 75 | "babel-preset-stage-1": "^6.22.0", |
|
0 commit comments