pkg-dir
Advanced tools
Comparing version 7.0.0 to 8.0.0
@@ -1,2 +0,2 @@ | ||
export interface Options { | ||
export type Options = { | ||
/** | ||
@@ -8,3 +8,3 @@ The directory to start searching from. | ||
readonly cwd?: string; | ||
} | ||
}; | ||
@@ -11,0 +11,0 @@ /** |
import path from 'node:path'; | ||
import {findUp, findUpSync} from 'find-up'; | ||
import {findUp, findUpSync} from 'find-up-simple'; | ||
@@ -4,0 +4,0 @@ export async function packageDirectory({cwd} = {}) { |
{ | ||
"name": "pkg-dir", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"description": "Find the root directory of a Node.js project or npm package", | ||
@@ -14,5 +14,8 @@ "license": "MIT", | ||
"type": "module", | ||
"exports": "./index.js", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"engines": { | ||
"node": ">=14.16" | ||
"node": ">=18" | ||
}, | ||
@@ -51,11 +54,10 @@ "scripts": { | ||
"dependencies": { | ||
"find-up": "^6.3.0" | ||
"find-up-simple": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^4.3.1", | ||
"tempy": "^3.0.0", | ||
"tsd": "^0.22.0", | ||
"typescript": "^4.7.4", | ||
"xo": "^0.51.0" | ||
"ava": "^5.3.1", | ||
"tempy": "^3.1.0", | ||
"tsd": "^0.29.0", | ||
"xo": "^0.56.0" | ||
} | ||
} |
@@ -58,13 +58,1 @@ # pkg-dir | ||
- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories | ||
--- | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-pkg-dir?utm_source=npm-pkg-dir&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
4
4930
58
+ Addedfind-up-simple@^1.0.0
+ Addedfind-up-simple@1.0.0(transitive)
- Removedfind-up@^6.3.0
- Removedfind-up@6.3.0(transitive)
- Removedlocate-path@7.2.0(transitive)
- Removedp-limit@4.0.0(transitive)
- Removedp-locate@6.0.0(transitive)
- Removedpath-exists@5.0.0(transitive)
- Removedyocto-queue@1.0.0(transitive)