Skip to content

Commit

Permalink
fix ci!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 committed Dec 11, 2024
1 parent 6430145 commit d3538fb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ console.log(1);

As oak middleware:

```ts
```ts ignore
import { Application } from "@oak/oak";
import { tsMiddleware } from "@ayame113/ts-serve";

Expand All @@ -56,7 +56,7 @@ As a replacement for the
[serveDir](https://doc.deno.land/https://deno.land/[email protected]/http/file_server.ts/~/serveDir)
function in the Deno standard library:

```ts
```ts ignore
import { serveDirWithTs } from "@ayame113/ts-serve";

Deno.serve((request) => serveDirWithTs(request));
Expand All @@ -66,15 +66,15 @@ As a replacement for the
[serveFile](https://doc.deno.land/https://deno.land/[email protected]/http/file_server.ts/~/serveFile)
function in the Deno standard library:

```ts
```ts ignore
import { serveFileWithTs } from "@ayame113/ts-serve";

Deno.serve((request) => serveFileWithTs(request, "./mod.ts"));
```

As [Hono](https://honojs.dev/)'s handler:

```ts
```ts ignore
import { Hono } from "@hono/hono";
import { serveDirWithTs } from "@ayame113/ts-serve";

Expand All @@ -95,7 +95,7 @@ However, performance can be an issue on the server as loading the wasm file
takes time. In that case, calling this function in advance can speed up later
calls to the transpile function.

```ts
```ts ignore
import { forceInstantiateWasm, serveDirWithTs } from "@ayame113/ts-serve";

// load the wasm file in the background when the server starts.
Expand Down

0 comments on commit d3538fb

Please sign in to comment.