import { defineConfig } from 'tsup'; // Bundle the backend (and the @altricade/core source it imports) into a single // self-contained ESM output for the slim runtime image. Third-party deps stay // external and are installed as production deps in the Docker runtime stage. export default defineConfig({ entry: ['src/server.ts', 'src/worker.ts'], format: ['esm'], target: 'node22', platform: 'node', outDir: 'dist', clean: true, sourcemap: true, noExternal: [/^@altricade\//], });