Skip to content

Commit

Permalink
[fix] resolve deeplinks of yarn and npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Feb 16, 2017
1 parent 74001ab commit a9b5a28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class ResolutionRequest {

_loadAsDir(potentialDirPath, fromModule, toModule) {
return Promise.resolve().then(() => {
if (fs.existsSync(potentialDirPath) && fs.lstatSync(potentialDirPath).isSymbolicLink()) {
while (fs.existsSync(potentialDirPath) && fs.lstatSync(potentialDirPath).isSymbolicLink()) {
potentialDirPath = path.resolve(
path.dirname(potentialDirPath),
fs.readlinkSync(potentialDirPath)
Expand Down

0 comments on commit a9b5a28

Please sign in to comment.