18 lines
453 B
TypeScript
18 lines
453 B
TypeScript
// tsup.config.ts
|
|
import { defineConfig } from 'tsup';
|
|
|
|
// This build step is just for the worker instance, because of nuances with graphile-worker.
|
|
// The main server app doesn't get built-- it launches using tsx.
|
|
export default defineConfig({
|
|
entry: ['src/tasks/**/*.ts'],
|
|
outDir: 'dist/tasks',
|
|
target: 'node20',
|
|
format: ['cjs'],
|
|
splitting: false,
|
|
shims: false,
|
|
external: ['@prisma/client', '.prisma/client'],
|
|
platform: 'node',
|
|
});
|
|
|
|
|