From eece9b125750c189ea0eddcefb35061fefd1219a Mon Sep 17 00:00:00 2001 From: JB Date: Thu, 1 Jan 2026 22:17:03 -0500 Subject: [PATCH] fix typescript definitions in composite mode by including lib source files --- packages/lib/tsconfig.json | 6 +++++- packages/star-kitten-bot/tsconfig.json | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/lib/tsconfig.json b/packages/lib/tsconfig.json index 72ad63b..0ae0fbe 100644 --- a/packages/lib/tsconfig.json +++ b/packages/lib/tsconfig.json @@ -11,7 +11,11 @@ "@/*": ["./src/*"], "@data/*": ["./data/*"], "@types/*": ["./types/*"] - } + }, + "noEmit": false, + "declaration": true, + "outDir": "dist", + "allowImportingTsExtensions": false }, "include": ["src", "types", "src/jsx/types.d.ts"], "exclude": ["node_modules", "dist", "build", "**/*.test.ts"] diff --git a/packages/star-kitten-bot/tsconfig.json b/packages/star-kitten-bot/tsconfig.json index a17fefe..4656c77 100644 --- a/packages/star-kitten-bot/tsconfig.json +++ b/packages/star-kitten-bot/tsconfig.json @@ -5,10 +5,12 @@ "jsx": "react-jsx", "jsxImportSource": "@star-kitten/lib/discord", "paths": { - "@*": ["./src/*"] + "@*": ["./src/*"], + "@star-kitten/lib/*": ["../lib/src/*"] }, "typeRoots": ["src/types", "./node_modules/@types"] }, + "references": [{ "path": "../lib" }], "include": ["src", "types"], "exclude": ["node_modules", "dist", "build", "**/*.test.ts"] }