Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
14
repos/effect/scripts/package-scalar.mjs
Normal file
14
repos/effect/scripts/package-scalar.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
/* 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/unstable/httpapi/internal/httpApiScalar.ts", source)
|
||||
Reference in New Issue
Block a user