renovatebot-github/tools/compile.js
2024-11-08 15:17:07 +00:00

14 lines
314 B
JavaScript

import { build } from 'esbuild';
import { env } from 'node:process';
await build({
entryPoints: ['./src/index.ts'],
bundle: true,
platform: 'node',
target: 'node20',
minify: !!env['CI'],
tsconfig: 'tsconfig.dist.json',
sourcemap: true,
// format: 'esm', // TODO: later PR
outdir: './dist/',
});