esbuild instead of tsc

This commit is contained in:
azykov@mail.ru
2026-07-01 13:43:05 +03:00
parent 0d2b6f6067
commit ab985c8fc1
6 changed files with 22 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));