diff --git a/index.js b/index.js index 71309ec..d19440e 100644 --- a/index.js +++ b/index.js @@ -22,8 +22,9 @@ module.exports = (relativeTsconfigPath = "./tsconfig.json") => { const pathKey = pathKeys.find((pkey) => new RegExp(`^${pkey}`).test(args.path)); const [pathDir] = pathKey.split("*"); let file = args.path.replace(pathDir, ""); - if (file === args.path) { // if importing from root of alias - file = "" + if (file === args.path) { + // if importing from root of alias + file = ""; } for (const dir of compilerOptions.paths[pathKey]) { const fileDir = normalizePath(path.resolve(process.cwd(), dir).replace("*", file));