We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae1a967 commit 0a21bf7Copy full SHA for 0a21bf7
src/compiler/moduleNameResolver.ts
@@ -284,6 +284,9 @@ namespace ts {
284
return [];
285
}
286
287
+ // Some TS consumers pass relative paths that aren't normalized
288
+ currentDirectory = ts.sys.resolvePath(currentDirectory);
289
+
290
const pnpapi = getPnpApi();
291
const locator = pnpapi.findPackageLocator(`${currentDirectory}/`);
292
const {packageDependencies} = pnpapi.getPackageInformation(locator);
0 commit comments