alex/publish-timeouts: simpler fetch

pull/3570/head
alex 2024-04-23 14:24:07 +01:00
rodzic f60ab18cf3
commit dd4614dc90
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -160,9 +160,8 @@ export async function publish(distTag?: string) {
nicelog('Waiting for package to be published... attempt', attempt, 'of', total)
// fetch the new package directly from the npm registry
const newVersion = packageDetails.version
const unscopedName = packageDetails.name.replace('@tldraw/', '')
const url = `https://registry.npmjs.org/${packageDetails.name}/-/${unscopedName}-${newVersion}.tgz`
const url = `https://registry.npmjs.org/${packageDetails.name}/${newVersion}`
nicelog('looking for package at url: ', url)
const res = await fetch(url, {
method: 'HEAD',