mirror of
https://github.com/sern-handler/cli
synced 2026-06-15 20:32:23 +00:00
* high hopes * s * plugin calling * add * eol * more progress * fmt * step 1 * refactor out * /internal route * prg * write handler * consolidate * fix version gen * prototype * out * fix merge * bundle presence and event modules * extrapolate into plugin * pluginify and simplify * fix up typing gen for process env and watch mode * watch * add nonpromptable plugins install * fix regression and clean up publish script * ea
12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
import type esbuild from 'esbuild';
|
|
import { resolve } from 'path';
|
|
|
|
export default (format: 'cjs' | 'esm', tsconfig: string|undefined, outdir='dist') => ({
|
|
platform: 'node',
|
|
format,
|
|
tsconfig,
|
|
logLevel: 'info',
|
|
minify: false,
|
|
outdir: resolve(outdir),
|
|
} satisfies esbuild.BuildOptions);
|