Bogdan Chadkin be0fcaaf49 Make dir for babel --out-file (#8622)
* Make dir for babel --out-file

Currently there's unexpected regression after upgrade from babel 6.
On creating file with any depth like dist/index.js the error about
not existing directory is thrown.

In this diff I modified babel-cli to create deep directory for out-file
command.

I also replaced `mkdirp` with more supported `make-dir` package which
also have official promise support.

* Fix test
2019-10-29 18:29:45 +01:00

30 lines
715 B
JSON

{
"name": "@babel/register",
"version": "7.6.2",
"description": "babel require hook",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/babel/babel/tree/master/packages/babel-register",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"main": "lib/index.js",
"browser": {
"./lib/node.js": "./lib/browser.js"
},
"dependencies": {
"find-cache-dir": "^2.0.0",
"lodash": "^4.17.13",
"make-dir": "^2.1.0",
"pirates": "^4.0.0",
"source-map-support": "^0.5.9"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"default-require-extensions": "^2.0.0"
}
}