Skip to content

Commit 8398a87

Browse files
committed
Base version test on 'versionMajorMinor'
1 parent 6f7a37c commit 8398a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ namespace ts {
127127

128128
/* @internal */
129129
export function getPackageJsonTypesVersionsOverride(typesVersions: MapLike<string>) {
130-
const typeScriptVersion = Version.parse(version);
130+
const typeScriptVersion = Version.parse(versionMajorMinor);
131131
let bestVersion: Version | undefined;
132132
let bestVersionKey: string | undefined;
133133
for (const key in typesVersions) {

0 commit comments

Comments
 (0)