Files
ontime/apps/server/esbuild.js
T
Alex Christoffer Rasmussen fc7ed6bd20 clean turbo config and cache github actions (#1805)
* refactor: turbo scripts

refactor dev and build scripts

remove cleanup

* fix e2e script

* cache playwright

* cache pnpm

* fix docker env in vite

* fixup! refactor: turbo scripts

* chore: add comment
2025-10-07 12:32:12 +02:00

17 lines
417 B
JavaScript

import * as esbuild from 'esbuild';
const isDocker = process.env.NODE_ENV === 'docker';
await esbuild.build({
logLevel: 'error',
platform: 'node',
target: ['node20'],
format: 'cjs',
bundle: true,
minify: true,
legalComments: 'external',
dropLabels: ['DEV'],
entryPoints: isDocker ? ['src/index.ts'] : ['src/app.ts'],
outfile: isDocker ? 'dist/docker.cjs' : 'dist/index.cjs',
});