From 820bb6e395c9a472a635bf7760cb0f8d4bd3fb46 Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Mon, 23 Feb 2026 17:58:58 -0500 Subject: [PATCH] Add typescript and tsconfig for type checking --- bun.lock | 13 +------------ package.json | 3 ++- tsconfig.json | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 tsconfig.json diff --git a/bun.lock b/bun.lock index 4a3a233..211b249 100644 --- a/bun.lock +++ b/bun.lock @@ -6,10 +6,7 @@ "name": "slaywithfriends", "devDependencies": { "@biomejs/biome": "^2.4.4", - "@types/bun": "latest", - }, - "peerDependencies": { - "typescript": "^5", + "typescript": "^5.9.3", }, }, }, @@ -32,14 +29,6 @@ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.4.4", "", { "os": "win32", "cpu": "x64" }, "sha512-gnOHKVPFAAPrpoPt2t+Q6FZ7RPry/FDV3GcpU53P3PtLNnQjBmKyN2Vh/JtqXet+H4pme8CC76rScwdjDcT1/A=="], - "@types/bun": ["@types/bun@1.3.9", "", { "dependencies": { "bun-types": "1.3.9" } }, "sha512-KQ571yULOdWJiMH+RIWIOZ7B2RXQGpL1YQrBtLIV3FqDcCu6FsbFUBwhdKUlCKUpS3PJDsHlJ1QKlpxoVR+xtw=="], - - "@types/node": ["@types/node@25.3.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A=="], - - "bun-types": ["bun-types@1.3.9", "", { "dependencies": { "@types/node": "*" } }, "sha512-+UBWWOakIP4Tswh0Bt0QD0alpTY8cb5hvgiYeWCMet9YukHbzuruIEeXC2D7nMJPB12kbh8C7XJykSexEqGKJg=="], - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - - "undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="], } } diff --git a/package.json b/package.json index 060b1bb..0df2136 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "dev": "bun run src/serve.js" }, "devDependencies": { - "@biomejs/biome": "^2.4.4" + "@biomejs/biome": "^2.4.4", + "typescript": "^5.9.3" } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..896ba02 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "bundler", + "types": ["bun-types"], + "noEmit": true, + "allowJs": true, + "checkJs": false, + "strict": false + }, + "include": ["src/**/*"], + "exclude": ["node_modules"] +}