update packages to alpha.12 (#343)

* update packages to alpha.12

* fix tests

* Read babel-cli from package.json in smoke test
This commit is contained in:
Henry Zhu 2017-06-01 10:32:28 -04:00 committed by GitHub
parent 432495752d
commit 41b0a79837
5 changed files with 382 additions and 303 deletions

View File

@ -25,46 +25,46 @@
"test-only": "mocha ./test --compilers js:babel-register -t 10000"
},
"dependencies": {
"babel-plugin-check-es2015-constants": "7.0.0-alpha.9",
"babel-plugin-syntax-trailing-function-commas": "7.0.0-alpha.9",
"babel-plugin-transform-async-to-generator": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-arrow-functions": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-block-scoped-functions": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-block-scoping": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-computed-properties": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-destructuring": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-duplicate-keys": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-for-of": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-function-name": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-literals": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-modules-amd": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-modules-commonjs": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-modules-systemjs": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-modules-umd": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-object-super": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-parameters": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-shorthand-properties": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-spread": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-sticky-regex": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-template-literals": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-typeof-symbol": "7.0.0-alpha.9",
"babel-plugin-transform-es2015-unicode-regex": "7.0.0-alpha.9",
"babel-plugin-transform-exponentiation-operator": "7.0.0-alpha.9",
"babel-plugin-transform-regenerator": "7.0.0-alpha.9",
"babel-plugin-check-es2015-constants": "7.0.0-alpha.12",
"babel-plugin-syntax-trailing-function-commas": "7.0.0-alpha.12",
"babel-plugin-transform-async-to-generator": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-arrow-functions": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-block-scoped-functions": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-block-scoping": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-classes": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-computed-properties": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-destructuring": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-duplicate-keys": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-for-of": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-function-name": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-literals": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-modules-amd": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-modules-commonjs": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-modules-systemjs": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-modules-umd": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-object-super": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-parameters": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-shorthand-properties": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-spread": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-sticky-regex": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-template-literals": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-typeof-symbol": "7.0.0-alpha.12",
"babel-plugin-transform-es2015-unicode-regex": "7.0.0-alpha.12",
"babel-plugin-transform-exponentiation-operator": "7.0.0-alpha.12",
"babel-plugin-transform-regenerator": "7.0.0-alpha.12",
"browserslist": "^2.1.2",
"invariant": "^2.2.2",
"semver": "^5.3.0"
},
"devDependencies": {
"babel-cli": "7.0.0-alpha.9",
"babel-cli": "7.0.0-alpha.12",
"babel-eslint": "^7.1.1",
"babel-helper-fixtures": "7.0.0-alpha.9",
"babel-helper-plugin-test-runner": "7.0.0-alpha.9",
"babel-helper-fixtures": "7.0.0-alpha.12",
"babel-helper-plugin-test-runner": "7.0.0-alpha.12",
"babel-plugin-istanbul": "^4.0.0",
"babel-plugin-transform-flow-strip-types": "7.0.0-alpha.9",
"babel-plugin-transform-flow-strip-types": "7.0.0-alpha.12",
"babel-preset-env": "2.0.0-alpha.1",
"babel-register": "7.0.0-alpha.9",
"babel-register": "7.0.0-alpha.12",
"chai": "^3.5.0",
"codecov": "^2.0.1",
"compat-table": "kangax/compat-table#1f0bb0913736fe8c4c11b139766c73b9cbedb9f2",

View File

@ -17,6 +17,12 @@ try {
fs.ensureDirSync(tempFolderPath);
process.chdir(tempFolderPath);
const babelCliVersion = pkg.devDependencies["babel-cli"];
if (!babelCliVersion) {
throw new Error("Could not read version of babel-cli from package.json");
}
fs.writeFileSync(
path.join(tempFolderPath, "package.json"),
`
@ -28,7 +34,7 @@ try {
"build": "babel index.js --out-file index.es6"
},
"dependencies": {
"babel-cli": "*",
"babel-cli": "${babelCliVersion}",
"babel-preset-env": "${packPath}"
}
}

View File

@ -19,4 +19,4 @@ var a = function () {
};
}();
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _next(value) { step("next", value); } function _throw(err) { step("throw", err); } _next(); }); }; }
function _asyncToGenerator(fn) { return function () { var _this = this, _arguments = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(_this, _arguments); function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _next(value) { step("next", value); } function _throw(err) { step("throw", err); } _next(); }); }; }

View File

@ -1,10 +1,12 @@
"use strict";
var _this = undefined;
function _newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } }
var bar = "bar";
var x = function () {
_newArrowCheck(undefined, undefined);
var x = function x() {
_newArrowCheck(this, _this);
return "foo" + bar;
}.bind(undefined);
}.bind(undefined);

File diff suppressed because it is too large Load Diff