pkg-dir
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
const filePath = await findUp('package.json', {cwd}); | ||
return filePath ? path.dirname(filePath) : undefined; | ||
return filePath && path.dirname(filePath); | ||
}; | ||
@@ -17,3 +17,3 @@ | ||
const filePath = findUp.sync('package.json', {cwd}); | ||
return filePath ? path.dirname(filePath) : undefined; | ||
return filePath && path.dirname(filePath); | ||
}; |
{ | ||
"name": "pkg-dir", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Find the root directory of a Node.js project or npm package", | ||
@@ -48,6 +48,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"find-up": "^3.0.0" | ||
"find-up": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^1.4.1", | ||
"tempy": "^0.3.0", | ||
"tsd": "^0.7.2", | ||
@@ -54,0 +55,0 @@ "xo": "^0.24.0" |
4750
4
+ Addedfind-up@4.1.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedpath-exists@3.0.0(transitive)
Updatedfind-up@^4.0.0