diff --git a/src/PathTranslator.ts b/src/PathTranslator.ts index e38ae2e..582cd0e 100644 --- a/src/PathTranslator.ts +++ b/src/PathTranslator.ts @@ -212,6 +212,8 @@ export class PathTranslator { pathInfo.exts.push(this.getLuauExt()); // push .lua(u) } + // inside of node_modules, we assume compiled file is sibling of filePath + // outside, we check relative to outDir return isNodeModule ? pathInfo.join() : makeRelative(pathInfo); } }