Skip to content

Commit faa8a4e

Browse files
committed
update
1 parent 0c9e08e commit faa8a4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cli/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const main = defineCommand({
222222
}
223223

224224
const depUrl = new URL(
225-
`/${owner}/${repo}/${pJson.name}@${isCompact ? abbreviateCommitHash(sha) : sha}`,
225+
`/${owner}/${repo}/${pJson.name}@${sha}`,
226226
apiUrl,
227227
).href;
228228
deps.set(pJson.name, depUrl);
@@ -231,7 +231,7 @@ const main = defineCommand({
231231
const resource = await fetch(depUrl);
232232
if (resource.ok) {
233233
console.warn(
234-
`${pJson.name}@${isCompact ? abbreviateCommitHash(sha) : sha} was already published on ${depUrl}`,
234+
`${pJson.name}@${abbreviateCommitHash(sha)} was already published on ${depUrl}`,
235235
);
236236
}
237237

@@ -676,4 +676,4 @@ function parsePackageJson(contents: string) {
676676
} catch {
677677
return null;
678678
}
679-
}
679+
}

0 commit comments

Comments
 (0)