UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

16 lines (13 loc) 690 B
import { build } from 'esbuild'; build({ entryPoints: ['cli.ts'], // 👈 Your CLI entrypoint bundle: true, // bundle all dependencies into one file platform: 'node', // build for Node.js (not browser) target: 'node20', // match your Node.js runtime version outfile: 'dist/cli.cjs', // output file (ESM for CLI) format: 'cjs', // CommonJS format, sourcemap: true, // optional: for debugging external: [ // exclude large deps you don’t want bundled 'esbuild', // example, adjust as needed ], }).catch(() => process.exit(1));