Messenger/packages/backend/tsup.config.ts
Заид Омар Медхат | Zaid Omar Medhat 62f20f8843 init
2026-07-10 13:31:12 +05:00

15 lines
481 B
TypeScript

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'],
format: ['esm'],
target: 'node22',
platform: 'node',
outDir: 'dist',
clean: true,
sourcemap: true,
noExternal: [/^@altricade\//],
});