Skip to content

Commit d4eb578

Browse files
outsleptmrstork
andauthored
chore: replaced path-exists with existsSync (#6550)
Co-authored-by: Mateusz Bocian <[email protected]>
1 parent 8b7583e commit d4eb578

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/git-utils/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
"execa": "^8.0.0",
5454
"map-obj": "^5.0.0",
5555
"micromatch": "^4.0.2",
56-
"moize": "^6.1.3",
57-
"path-exists": "^5.0.0"
56+
"moize": "^6.1.3"
5857
},
5958
"devDependencies": {
6059
"@types/node": "^18.19.111",

packages/git-utils/src/exec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import process from 'process'
2-
2+
import { existsSync } from 'fs'
33
import { execaSync } from 'execa'
44
import moize from 'moize/mjs/index.mjs'
5-
import { pathExistsSync } from 'path-exists'
65

76
// Fires the `git` binary. Memoized.
87
const mGit = function (args, cwd) {
@@ -23,7 +22,7 @@ export const git = moize(mGit, { isDeepEqual: true, maxSize: 1e3 })
2322
const safeGetCwd = function (cwd) {
2423
const cwdA = getCwdValue(cwd)
2524

26-
if (!pathExistsSync(cwdA)) {
25+
if (!existsSync(cwdA)) {
2726
throw new Error(`Current directory does not exist: ${cwdA}`)
2827
}
2928

0 commit comments

Comments
 (0)