Skip to content

Commit 2f85932

Browse files
committed
Fixes linting
1 parent 02a81b7 commit 2f85932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ namespace ts {
294294
return [];
295295
}
296296

297-
const {packageDependencies} = pnpapi.getPackageInformation(currentPackage!);
297+
const {packageDependencies} = pnpapi.getPackageInformation(currentPackage);
298298

299299
const typeRoots: string[] = [];
300300
for (const [name, referencish] of Array.from<any>(packageDependencies.entries())) {
@@ -1596,7 +1596,7 @@ namespace ts {
15961596
function loadPnpPackageResolution(packageName: string, containingDirectory: string) {
15971597
try {
15981598
const resolution = getPnpApi().resolveToUnqualified(packageName, `${containingDirectory}/`, { considerBuiltins: false });
1599-
return ts.normalizeSlashes(resolution);
1599+
return normalizeSlashes(resolution);
16001600
}
16011601
catch {
16021602
// Nothing to do

0 commit comments

Comments
 (0)