|
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 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", |
|
62 | 62 | "babel-eslint": "^7.1.1", |
63 | 63 | "babel-plugin-istanbul": "^4.0.0", |
64 | 64 | "babel-plugin-transform-runtime": "^6.23.0", |
65 | | - "babel-preset-es2015": "^6.22.0", |
| 65 | + "babel-preset-env": "^1.7.0", |
66 | 66 | "babel-preset-flow": "^6.23.0", |
67 | 67 | "babel-preset-stage-1": "^6.22.0", |
68 | 68 | "babel-register": "^6.23.0", |
|
0 commit comments