Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
18
node_modules/hono/dist/adapter/deno/ssg.js
generated
vendored
Normal file
18
node_modules/hono/dist/adapter/deno/ssg.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// src/adapter/deno/ssg.ts
|
||||
import { toSSG as baseToSSG } from "../../helper/ssg/index.js";
|
||||
var 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 });
|
||||
}
|
||||
};
|
||||
var toSSG = async (app, options) => {
|
||||
return baseToSSG(app, denoFileSystemModule, options);
|
||||
};
|
||||
export {
|
||||
denoFileSystemModule,
|
||||
toSSG
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue