diff --git a/lib/update.ts b/lib/update.ts index ab396d16..d1c5ec3f 100644 --- a/lib/update.ts +++ b/lib/update.ts @@ -251,7 +251,12 @@ async function collectFromDependency( ): Promise { const resolved = dependencyJson.code?.specifier ?? dependencyJson.type?.specifier; - assertExists(resolved); + if (!resolved) { + throw new Error( + `Could not resolve the dependency: ${dependencyJson.specifier}`, + { cause: dependencyJson }, + ); + } const lock = options.lockFile ? await createLockPart(resolved, options.lockFile) : undefined;