@babel/cli
Advanced tools
Comparing version 7.0.0-beta.51 to 7.0.0-beta.52
@@ -28,2 +28,12 @@ "use strict"; | ||
function _mkdirp() { | ||
const data = require("mkdirp"); | ||
_mkdirp = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _slash() { | ||
@@ -134,12 +144,2 @@ const data = _interopRequireDefault(require("slash")); | ||
function outputDestFolder(outDir) { | ||
const outDirPath = _path().default.resolve(outDir); | ||
try { | ||
_fs().default.mkdirSync(outDirPath); | ||
} catch (err) { | ||
if (err.code !== "EEXIST") throw err; | ||
} | ||
} | ||
function handleFile(_x4, _x5) { | ||
@@ -203,3 +203,3 @@ return _handleFile.apply(this, arguments); | ||
outputDestFolder(cliOptions.outDir); | ||
(0, _mkdirp().sync)(cliOptions.outDir); | ||
let compiledFiles = 0; | ||
@@ -211,3 +211,3 @@ | ||
console.log(`🎉 Successfully compiled ${compiledFiles} ${compiledFiles !== 1 ? "files" : "file"} with Babel.`); | ||
console.log(`Successfully compiled ${compiledFiles} ${compiledFiles !== 1 ? "files" : "file"} with Babel.`); | ||
} | ||
@@ -214,0 +214,0 @@ |
{ | ||
"name": "@babel/cli", | ||
"version": "7.0.0-beta.51", | ||
"version": "7.0.0-beta.52", | ||
"description": "Babel command line.", | ||
@@ -24,2 +24,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"lodash": "^4.17.5", | ||
"mkdirp": "^0.5.1", | ||
"output-file-sync": "^2.0.0", | ||
@@ -36,4 +37,4 @@ "slash": "^1.0.0", | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.51", | ||
"@babel/helper-fixtures": "7.0.0-beta.51" | ||
"@babel/core": "7.0.0-beta.52", | ||
"@babel/helper-fixtures": "7.0.0-beta.52" | ||
}, | ||
@@ -40,0 +41,0 @@ "bin": { |
@@ -5,3 +5,3 @@ # @babel/cli | ||
See our website [@babel/cli](https://new.babeljs.io/docs/en/next/babel-cli.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20cli%22+is%3Aopen) associated with this package. | ||
See our website [@babel/cli](https://babeljs.io/docs/en/next/babel-cli.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20cli%22+is%3Aopen) associated with this package. | ||
@@ -13,3 +13,3 @@ ## Install | ||
```sh | ||
npm install --save @babel/cli | ||
npm install --save-dev @babel/cli | ||
``` | ||
@@ -20,3 +20,3 @@ | ||
```sh | ||
yarn add --save @babel/cli | ||
yarn add @babel/cli --dev | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30735
11
747
+ Addedmkdirp@^0.5.1