diff --git a/packages/dtslint/src/checks.ts b/packages/dtslint/src/checks.ts index d3a05b5dea..5233f1339d 100644 --- a/packages/dtslint/src/checks.ts +++ b/packages/dtslint/src/checks.ts @@ -244,8 +244,8 @@ export async function checkNpmVersionAndGetMatchingImplementationPackage( const typesPackageVersion = `${packageJson.libraryMajorVersion}.${packageJson.libraryMinorVersion}`; let packageId; try { - packageId = await retryNon404Errors( - () => attw.resolveImplementationPackageForTypesPackage(packageJson.name, `${typesPackageVersion}.9999`, { + packageId = await retryNon404Errors(() => + attw.resolveImplementationPackageForTypesPackage(packageJson.name, `${typesPackageVersion}.9999`, { allowDeprecated: true, }), ); @@ -331,8 +331,10 @@ async function retryNon404Errors(action: () => Promise): Promise { return new Promise((resolve) => setTimeout(resolve, ms)); }