nexus/packages/buildthis/esbuild.config.mjs
Nexus Dev e149e01458 feat(35-01): buildthis CLI package — hardware detection + bootstrap
Standalone npm package at packages/buildthis/. Probes running Nexus
instance, opens browser if found, guides install with hardware-aware
provider recommendations if not. 14 tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 23:01:10 +00:00

13 lines
369 B
JavaScript

/** @type {import('esbuild').BuildOptions} */
export default {
entryPoints: ["src/index.ts"],
bundle: true,
platform: "node",
target: "node20",
format: "esm",
outfile: "dist/index.js",
banner: { js: "#!/usr/bin/env node" },
external: ["systeminformation", "open", "@clack/prompts", "commander", "picocolors"],
treeShaking: true,
sourcemap: true,
};