diff --git a/package.json b/package.json index 0625913d1..404e2c307 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,10 @@ "babel-cli": "6.26.0", "babel-core": "6.26.0", "babel-eslint": "8.0.1", + "babel-jest": "^21.2.0", "babel-loader": "7.1.2", "babel-plugin-flow-runtime": "0.11.1", + "babel-plugin-transform-async-to-generator": "^6.24.1", "babel-plugin-transform-decorators-legacy": "1.3.4", "babel-plugin-transform-es2015-classes": "^6.24.1", "babel-plugin-transform-runtime": "6.23.0", @@ -68,11 +70,10 @@ "babel-preset-stage-3": "6.24.1", "babel-register": "^6.26.0", "babel-runtime": "6.26.0", - "babel-jest": "^21.2.0", - "babel-plugin-transform-async-to-generator": "^6.24.1", "codacy-coverage": "2.0.2", "codecov": "2.2.0", "coveralls": "2.13.1", + "cross-env": "^5.1.1", "css-loader": "0.28.7", "element-react": "1.4.1", "element-theme-default": "1.4.9", @@ -133,7 +134,7 @@ "release": "standard-version -a -s", "prepublish": "in-publish && npm run build:webui || not-in-publish", "flow": "flow", - "test": "BABEL_ENV=registry mocha --require babel-register ./test/functional ./test/unit --reporter=spec --full-trace", + "test": "cross-env BABEL_ENV=registry mocha --require babel-register ./test/functional ./test/unit --reporter=spec --full-trace", "pre:ci": "npm run build:webui", "test:ci": "npm run test:coverage", "test:only": "mocha ./test/functional ./test/unit", @@ -142,8 +143,8 @@ "coverage:publish": "nyc report --reporter=lcov | codecov", "lint": "eslint .", "lint:css": "stylelint 'src/**/*.scss' --syntax scss", - "dev:start": "BABEL_ENV=registry babel-node src/lib/cli", - "code:build": "BABEL_ENV=registry babel src/ --out-dir build/ --ignore src/webui/ --copy-files", + "dev:start": "cross-env BABEL_ENV=registry babel-node src/lib/cli", + "code:build": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --ignore src/webui/ --copy-files", "pre:webpack": "npm run lint && rimraf static/*", "dev:webui": "babel-node tools/dev.server.js", "build:webui": "npm run pre:webpack && BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js", diff --git a/yarn.lock b/yarn.lock index 523ce7c9e..ae126f9d7 100644 Binary files a/yarn.lock and b/yarn.lock differ