MCPcopy Create free account
hub / github.com/middleapi/orpc / writeWebsiteSponsorsFile

Function writeWebsiteSponsorsFile

scripts/sync-sponsor.ts:230–234  ·  view source on GitHub ↗
(sponsors: Sponsor[])

Source from the content-addressed store, hash-verified

228}
229
230async function writeWebsiteSponsorsFile(sponsors: Sponsor[]): Promise<void> {
231 await mkdir(path.dirname(WEBSITE_SPONSORS_FILE), { recursive: true })
232 const content = buildWebsiteSponsorsFileContent(sponsors)
233 await writeFile(WEBSITE_SPONSORS_FILE, content)
234}
235
236async function main(): Promise<void> {
237 const response = await fetch(SPONSORS_SOURCE_URL)

Callers 1

mainFunction · 0.85

Calls 1

Tested by

no test coverage detected