codeburn/tsup.config.ts
iamtoruk a6dbba4e7a Add Node version guard for unsupported runtimes
Split CLI into a tiny launcher (src/cli.ts) that checks for Node >= 22.13.0
before dynamically importing the full CLI (src/main.ts). Users on Node 18
now get a clear upgrade message instead of a cryptic regex parse error from
string-width. Closes #232.
2026-05-11 21:47:02 -07:00

12 lines
221 B
TypeScript

import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/main.ts'],
format: ['esm'],
target: 'node20',
outDir: 'dist',
clean: true,
splitting: false,
sourcemap: true,
dts: false,
})