From 1fe6bfb3809af1be428947154508a36cca42d0dd Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 1 Feb 2026 15:36:53 +0300 Subject: [PATCH 1/2] nix: add mainProgram attribute Signed-off-by: NotAShelf Change-Id: I5744837dbf5cb718dd9a293f2fe288a26a6a6964 --- nix/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/package.nix b/nix/package.nix index 5557d37..112904e 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -67,5 +67,6 @@ stdenv.mkDerivation (finalAttrs: { description = "The ultimate trout population helper"; license = lib.licenses.eupl12; maintainers = with lib.maintainers; [NotAShelf]; + mainProgram = "troutbot"; }; }) From 49a8a352dfafc838564209315a7f3678c254f99e Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 1 Feb 2026 16:18:04 +0300 Subject: [PATCH 2/2] chore: bundle jitsi for config loading Signed-off-by: NotAShelf Change-Id: Iaf818970d17c911b80d3b5bc634a75896a6a6964 --- tsup.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tsup.config.ts diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..3f202c0 --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,13 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: 'cjs', + dts: true, + clean: true, + // Bundle jiti into the output so it works without node_modules + noExternal: ['jiti'], + // Ensure all dependencies are resolved + platform: 'node', + target: 'node22', +});