Skip to content
Source
Sign inSign up

package-scalar.mjs

14 lines428 Bytes

1/* oxlint-disable no-undef */
2import * as Fs from "fs/promises"
3​
4const jsBundle = await fetch(
5 "https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.min.js"
6).then((res) => res.text())
7​
8const source = `/* oxlint-disable no-undef */
9​
10/** @internal */
11export const javascript = ${JSON.stringify(`${jsBundle}`)}
13​
14await Fs.writeFile("packages/effect/src/http-api/internal/httpApiScalar.ts", source)