From f10474b402726d624a636a5581201c955cb6fc4f Mon Sep 17 00:00:00 2001 From: Ran Yitzhaki Date: Tue, 7 Jan 2025 09:30:37 +0100 Subject: [PATCH] fix(node-module): do not throw an error in case of ENOENT error when using realpath (#131) --- src/workspace/node-module.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workspace/node-module.ts b/src/workspace/node-module.ts index 83e0277..904e943 100644 --- a/src/workspace/node-module.ts +++ b/src/workspace/node-module.ts @@ -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; } }