Skip to content
Myr

ssg.ts

This file

Path

src/adapter/bun/ssg.ts

29 lines · 906 bytes · TypeScript

Last changed by

feat(adapters): add @hono/bun as a workspace package (#5447)Yusuke Wadabefore adoptionfc2343d

History of this file

Take it

The walk stopped after 200 commits: lines older than f0b094d point at it.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 1–11why, one step back
1/* eslint-disable @typescript-eslint/ban-ts-comment */
2import { toSSG as baseToSSG } from '../../helper/ssg'3import type { FileSystemModule, ToSSGAdaptorInterface } from '../../helper/ssg'45// @ts-ignore6const { write } = Bun78/**9 * @experimental10 * `bunFileSystemModule` is an experimental feature.11 * The API might be changed.

feat(adapters): add @hono/bun as a workspace package (#5447)Yusuke Wadabefore adoptionfc2343d

line 12why, one step back
12 * @deprecated `hono/bun` will be removed in v5. Install `@hono/bun` and import from there instead.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 13–24why, one step back
13 */
14export const bunFileSystemModule: FileSystemModule = {15 writeFile: async (path, data) => {16 await write(path, data)17 },18 mkdir: async () => {},19}2021/**22 * @experimental23 * `toSSG` is an experimental feature.24 * The API might be changed.

feat(adapters): add @hono/bun as a workspace package (#5447)Yusuke Wadabefore adoptionfc2343d

line 25why, one step back
25 * @deprecated `hono/bun` will be removed in v5. Install `@hono/bun` and import from there instead.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 26–29why, one step back
26 */
27export const toSSG: ToSSGAdaptorInterface = async (app, options) => {28 return baseToSSG(app, bunFileSystemModule, options)29}