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"; }; }) 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', +});