Skip to content

Commit

Permalink
Update realpath.js to fix npm#7309
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcLean authored Aug 28, 2024
1 parent 1772276 commit e23dc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/arborist/lib/realpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const realpathCached = (path, rpcache, stcache, depth) => {
}

// if it's the root, then we know it's real
if (!base) {
if (!base || dir == path) {
rpcache.set(dir, dir)
return Promise.resolve(dir)
}
Expand Down

0 comments on commit e23dc8b

Please sign in to comment.