(
projectDir: string,
opts: PublishOptions = {},
)
| 485 | } |
| 486 | |
| 487 | export async function publishProjectArchive( |
| 488 | projectDir: string, |
| 489 | opts: PublishOptions = {}, |
| 490 | ): Promise<PublishedProjectResponse> { |
| 491 | const isPublic = opts.public === true; |
| 492 | const title = basename(projectDir); |
| 493 | const archive = createPublishArchive(projectDir); |
| 494 | const apiBaseUrl = getPublishApiBaseUrl(); |
| 495 | const stagedResult = await publishProjectArchiveStaged(apiBaseUrl, title, archive, isPublic); |
| 496 | if (stagedResult) return stagedResult; |
| 497 | return publishProjectArchiveDirect(apiBaseUrl, title, archive, isPublic); |
| 498 | } |
no test coverage detected