17 lines
297 B
JavaScript
17 lines
297 B
JavaScript
import { build } from 'esbuild';
|
|
|
|
await build({
|
|
entryPoints: ['src/index.ts'],
|
|
bundle: true,
|
|
format: 'esm',
|
|
platform: 'node',
|
|
target: 'node18',
|
|
outfile: 'dist/index.js',
|
|
banner: {
|
|
js: '#!/usr/bin/env node',
|
|
},
|
|
external: [],
|
|
});
|
|
|
|
console.log('Build complete: dist/index.js');
|