mirror of
https://github.com/cpvalente/ontime.git
synced 2026-07-26 10:38:55 +00:00
fc7ed6bd20
* 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
17 lines
417 B
JavaScript
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',
|
|
});
|