14 lines
264 B
JavaScript
14 lines
264 B
JavaScript
// build.js
|
|
import { build } from 'esbuild';
|
|
|
|
build({
|
|
entryPoints: ['src/index.ts'],
|
|
bundle: true,
|
|
platform: 'node',
|
|
target: 'node22',
|
|
format: 'esm',
|
|
outfile: 'dist/index.js',
|
|
sourcemap: true,
|
|
packages: 'external',
|
|
}).catch(() => process.exit(1));
|