find-babel-config
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.0.1"></a> | ||
## [1.0.1](https://github.com/tleunen/find-babel-config/compare/v1.0.0...v1.0.1) (2016-08-20) | ||
### Bug Fixes | ||
* Fix async call with depth 0 ([ddb684f](https://github.com/tleunen/find-babel-config/commit/ddb684f)) | ||
<a name="1.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.0.0](https://github.com/tleunen/find-babel-config/compare/v0.1.1...v1.0.0) (2016-08-06) |
@@ -17,3 +17,5 @@ 'use strict'; | ||
function asyncFind(resolve, dir, depth) { | ||
if (!depth) resolve(nullConf); | ||
if (depth < 0) { | ||
return resolve(nullConf); | ||
} | ||
@@ -20,0 +22,0 @@ var babelrc = path.join(dir, BABELRC_FILENAME); |
{ | ||
"name": "find-babel-config", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "lib/index.js", | ||
@@ -28,8 +28,7 @@ "description": "Find the closest babel config based on a directory", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.2.2", | ||
"eslint-config-airbnb-base": "^5.0.1", | ||
"eslint-plugin-import": "^1.12.0", | ||
"lodash": "^4.14.1", | ||
"mocha": "^3.0.1", | ||
"nyc": "^7.1.0", | ||
"eslint": "^3.3.0", | ||
"eslint-config-airbnb-base": "^5.0.2", | ||
"eslint-plugin-import": "^1.13.0", | ||
"mocha": "^3.0.2", | ||
"nyc": "^8.1.0", | ||
"standard-version": "^2.4.0" | ||
@@ -36,0 +35,0 @@ }, |
@@ -36,3 +36,3 @@ # find-babel-config | ||
const directory = 'src'; | ||
const { file, config } = findBabelConfig(directory); | ||
const { file, config } = findBabelConfig.sync(directory); | ||
// if c === null, the config wasn't found | ||
@@ -39,0 +39,0 @@ if (file) { |
10141
10
106