chore: bundle jitsi for config loading

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iaf818970d17c911b80d3b5bc634a75896a6a6964
This commit is contained in:
raf 2026-02-01 16:18:04 +03:00
commit 502e17bf47
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 17 additions and 1 deletions

View file

@ -9,7 +9,7 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "troutbot";
version = "0-unstable-2026-01-30";
version = "0-unstable-2026-02-01";
src = lib.fileset.toSource {
root = ../.;
@ -19,6 +19,7 @@ stdenv.mkDerivation (finalAttrs: {
../package.json
../pnpm-lock.yaml
../tsconfig.json
../tsup.config.ts
];
};

15
tsup.config.ts Normal file
View file

@ -0,0 +1,15 @@
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',
});