Skip to content

Commit e44785d

Browse files
committed
Use directory function
1 parent 2376abc commit e44785d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/moduleSpecifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace ts.moduleSpecifiers {
159159
for (const path of paths) {
160160
const resolved = links.get(path)!;
161161
if (startsWith(target, resolved + "/")) {
162-
const relative = getRelativePathFromFile(resolved + "/file.ts", target, getCanonicalFileName);
162+
const relative = getRelativePathFromDirectory(resolved, target, getCanonicalFileName);
163163
const option = resolvePath(path, relative);
164164
if (!host.fileExists || host.fileExists(option)) {
165165
if (!options) options = [];

0 commit comments

Comments
 (0)