Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ const main = defineCommand({
await verifyCompactMode(pJson.name);
}

const formattedSha = isCompact ? abbreviateCommitHash(sha) : sha;
const depUrl = new URL(
`/${owner}/${repo}/${pJson.name}@${sha}`,
`/${owner}/${repo}/${pJson.name}@${formattedSha}`,
apiUrl,
).href;
deps.set(pJson.name, depUrl);
Expand All @@ -231,7 +232,7 @@ const main = defineCommand({
const resource = await fetch(depUrl);
if (resource.ok) {
console.warn(
`${pJson.name}@${abbreviateCommitHash(sha)} was already published on ${depUrl}`,
`${pJson.name}@${formattedSha} was already published on ${depUrl}`,
);
}

Expand Down