mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-16 05:53:34 +08:00
Co-authored-by: maksim.khramtsov <maksim.khramtsov@btsdigital.kz> Co-authored-by: Tim <hello@timsmart.co>
15 lines
412 B
JavaScript
15 lines
412 B
JavaScript
/* eslint-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 = `/* eslint-disable */
|
|
|
|
/** @internal */
|
|
export const javascript = ${JSON.stringify(`${jsBundle}`)}
|
|
`
|
|
|
|
await Fs.writeFile("packages/platform/src/internal/httpApiScalar.ts", source)
|