mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 20:31:16 +02:00
14 lines
428 B
JavaScript
14 lines
428 B
JavaScript
/* oxlint-disable no-undef */
|
|
import * as Fs from "fs/promises"
|
|
|
|
const jsBundle = await fetch(
|
|
"https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.min.js"
|
|
).then((res) => res.text())
|
|
|
|
const source = `/* oxlint-disable no-undef */
|
|
|
|
/** @internal */
|
|
export const javascript = ${JSON.stringify(`${jsBundle}`)}
|
|
`
|
|
|
|
await Fs.writeFile("packages/effect/src/http-api/internal/httpApiScalar.ts", source)
|