esbuild instead of tsc

This commit is contained in:
azykov@mail.ru
2026-07-01 13:29:04 +03:00
parent 0d2b6f6067
commit 464d66d82e
5 changed files with 21 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
// 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));