Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iaf818970d17c911b80d3b5bc634a75896a6a6964
16 lines
481 B
TypeScript
16 lines
481 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: 'cjs',
|
|
dts: true,
|
|
clean: true,
|
|
|
|
// Bundle all dependencies into the output so it works without node_modules
|
|
// Required for Nix packaging where node_modules are not available at runtime
|
|
noExternal: ['jiti', 'dotenv', 'express', 'express-rate-limit', '@octokit/rest', 'winston'],
|
|
|
|
// Ensure all dependencies are resolved
|
|
platform: 'node',
|
|
target: 'node22',
|
|
});
|