Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 693eb46

Browse files
committed
fix(example-deno): fix check-types
1 parent b9775ff commit 693eb46

File tree

5 files changed

+250
-6166
lines changed

5 files changed

+250
-6166
lines changed

examples/deno/deno.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"tasks": {
33
"dev": "deno run --allow-env --allow-sys --allow-read --allow-ffi --allow-net src/server.ts",
4-
"check-types": "deno check",
4+
"check-types": "deno check src/**/*.ts",
55
"test": "deno test --allow-env --allow-sys --allow-read --allow-ffi --allow-net",
66
"connect": "deno run --allow-env --allow-sys --allow-read --allow-ffi --allow-net scripts/connect.ts"
77
},
@@ -10,6 +10,16 @@
1010
"path": "node:path",
1111
"fs": "node:fs",
1212
"fs/promises": "node:fs/promises",
13-
"crypto": "node:crypto"
13+
"crypto": "node:crypto",
14+
"rivetkit": "../../packages/rivetkit/dist/tsup/mod.js",
15+
"rivetkit/client": "../../packages/rivetkit/dist/tsup/client/mod.js",
16+
"hono": "npm:[email protected]",
17+
"hono/ws": "npm:[email protected]/ws",
18+
"hono/deno": "npm:[email protected]/deno"
19+
},
20+
"compilerOptions": {
21+
"skipLibCheck": true,
22+
"strict": false,
23+
"noImplicitAny": false
1424
}
1525
}

examples/deno/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"dev": "deno run --allow-all src/server.ts",
9-
"check-types": "deno check",
9+
"check-types": "deno task check-types",
1010
"connect": "deno run --allow-all scripts/connect.ts"
1111
},
1212
"devDependencies": {

examples/deno/src/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { registry } from "./registry.ts";
33

44
const { fetch } = registry.start({
55
// Deno requires using Deno.serve
6-
disableServer: true,
6+
disableDefaultServer: true,
7+
overrideServerAddress: "http://localhost:8080",
78
// Specify Deno-specific upgradeWebSocket
89
getUpgradeWebSocket: () => upgradeWebSocket,
910
});

examples/deno/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
66
"target": "esnext",
77
/* Specify a set of bundled library declaration files that describe the target runtime environment. */
8-
"lib": ["deno.ns", "esnext", "DOM"],
8+
"lib": ["esnext", "DOM"],
99
/* Specify what JSX code is generated. */
1010
"jsx": "react-jsx",
1111

@@ -14,7 +14,7 @@
1414
/* Specify how TypeScript looks up a file from a given module specifier. */
1515
"moduleResolution": "bundler",
1616
/* Specify type package names to be included without being referenced in a source file. */
17-
"types": ["node"],
17+
"types": ["deno"],
1818
/* Enable importing .json files */
1919
"resolveJsonModule": true,
2020

@@ -32,6 +32,8 @@
3232
"allowSyntheticDefaultImports": true,
3333
/* Ensure that casing is correct in imports. */
3434
"forceConsistentCasingInFileNames": true,
35+
/* Allow imports to include TypeScript file extensions. */
36+
"allowImportingTsExtensions": true,
3537

3638
/* Enable all strict type-checking options. */
3739
"strict": true,

0 commit comments

Comments
 (0)