Skip to content

Commit

Permalink
fix: remove trailing slash from resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Aug 15, 2021
1 parent 50914c6 commit 98866a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/moduleNameResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ namespace ts {
function loadPnpPackageResolution(packageName: string, containingDirectory: string) {
try {
const resolution = getPnpApi(containingDirectory).resolveToUnqualified(packageName, `${containingDirectory}/`, { considerBuiltins: false });
return normalizeSlashes(resolution);
return normalizeSlashes(resolution).replace(/\/$/, '');
}
catch {
// Nothing to do
Expand Down

0 comments on commit 98866a5

Please sign in to comment.