Skip to content

Commit cd571c7

Browse files
committed
Set package type to "module"
1 parent c20f20a commit cd571c7

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"type": "module",
34
"scripts": {
45
"typecheck": "tsc --skipLibCheck --noEmit",
56
"lint": "eslint --max-warnings 0 src",

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import * as v from "@badrap/valita";
33
import { serve } from "@hono/node-server";
44
import { Hono } from "hono";
55
import { logger } from "hono/logger";
6-
import { poll } from "./poller";
7-
import { createRouter } from "./router";
8-
import { State } from "./types";
6+
import { poll } from "./poller.ts";
7+
import { createRouter } from "./router.tsx";
8+
import { State } from "./types.ts";
99

1010
const env = v
1111
.object({

src/poller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createHash } from "node:crypto";
22
import { resolve4 } from "node:dns";
33
import { setTimeout as sleep } from "node:timers/promises";
44
import { type API, type Asset, HTTPError } from "@badrap/libapp/api";
5-
import type { State } from "./types";
5+
import type { State } from "./types.ts";
66

77
// Update the assets for all installations continuously,
88
// rechecking them every 15 seconds.

src/router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { API, HTTPError } from "@badrap/libapp/api";
22
import * as v from "@badrap/valita";
33
import { Hono, HonoRequest } from "hono";
44
import { HTTPException } from "hono/http-exception";
5-
import { State } from "./types";
5+
import { State } from "./types.ts";
66

77
async function auth(
88
req: HonoRequest,

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"outDir": "./dist",
1010
"sourceMap": true,
1111
"jsx": "react-jsx",
12-
"jsxImportSource": "@badrap/libapp"
12+
"jsxImportSource": "@badrap/libapp",
13+
"rewriteRelativeImportExtensions": true
1314
},
1415
"include": ["src/**/*"]
1516
}

0 commit comments

Comments
 (0)