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

@@ -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}"
}
}