import { defineConfig } from 'tsup' export default defineConfig({ entry: ['src/index.ts'], format: 'esm', target: 'node20', clean: true, noExternal: [/@dbmole\/core/], // ssh2 (pulled in transitively by the bundled @dbmole/core) ships a native // crypto addon with a pure-JS fallback. Keep it external so esbuild never // tries to inline its optional .node binary, which need not exist on the // target. ssh2 resolves from node_modules at runtime and falls back to JS. external: ['ssh2'], banner: { js: '#!/usr/bin/env node' } })