indexer.ts imports typescript directly. Bundling it into an ESM output causes 'Dynamic require of fs is not supported' because typescript uses CJS require() for Node built-ins internally. Marking typescript as external drops the CLI bundle from 9.9 MB to 417 KB and fixes the startup crash on Node 22. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>