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; } }