Files
SnowLuma/.pnpm-store/v11/files/62/4fbdbc05faabb8c8621692fe14dc41405bd65bc7104701e8016af898ba1c149c13dc177af47e9215664654a3638aee68fd51d912a0001973edef1339a1ed33
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

32 lines
1.1 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_helper_ssg_ssg = require("../../helper/ssg/ssg.js");
require("../../helper/ssg/index.js");
//#region src/adapter/deno/ssg.ts
/**
* @experimental
* `denoFileSystemModule` is an experimental feature.
* The API might be changed.
* @deprecated `hono/deno` will be removed in v5. Install `@hono/deno` and import from there instead.
*/
const denoFileSystemModule = {
writeFile: async (path, data) => {
const uint8Data = typeof data === "string" ? new TextEncoder().encode(data) : new Uint8Array(data);
await Deno.writeFile(path, uint8Data);
},
mkdir: async (path, options) => {
return Deno.mkdir(path, { recursive: options?.recursive ?? false });
}
};
/**
* @experimental
* `toSSG` is an experimental feature.
* The API might be changed.
* @deprecated `hono/deno` will be removed in v5. Install `@hono/deno` and import from there instead.
*/
const toSSG = async (app, options) => {
return require_helper_ssg_ssg.toSSG(app, denoFileSystemModule, options);
};
//#endregion
exports.denoFileSystemModule = denoFileSystemModule;
exports.toSSG = toSSG;