Skip to content

Commit

Permalink
fix(node-module): do not throw an error in case of ENOENT error when …
Browse files Browse the repository at this point in the history
…using realpath (#131)
  • Loading branch information
ranyitz authored Jan 7, 2025
1 parent 5a8885a commit f10474b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workspace/node-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ export default class NodeModule {
// the path when this happen.
if ('code' in e && e.code === 'ENOENT') {
this._realpath = this.path;
return this.path;
}

throw e;
}
}
Expand Down

0 comments on commit f10474b

Please sign in to comment.