Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'

This commit is contained in:
-Puter
2026-07-19 03:25:10 +05:30
parent dd1071cc10
commit 2daf979036
2214 changed files with 673090 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/* oxlint-disable no-undef */
import * as Fs from "fs/promises"
const jsBundle = await fetch(
"https://unpkg.com/swagger-ui-dist/swagger-ui-bundle.js"
).then((res) => res.text())
const jsPreset = await fetch(
"https://unpkg.com/swagger-ui-dist/swagger-ui-standalone-preset.js"
).then((res) => res.text())
const css = await fetch(
"https://unpkg.com/swagger-ui-dist/swagger-ui.css"
).then((res) => res.text())
const source = `/* oxlint-disable no-undef */
/** @internal */
export const javascript = ${JSON.stringify(`${jsBundle}\n${jsPreset}`)}
/** @internal */
export const css = ${JSON.stringify(css)}
`
await Fs.writeFile("packages/effect/src/unstable/httpapi/internal/httpApiSwagger.ts", source)