stack/packages/stack-cli/tsdown.config.ts
BilalG1 f016cd8993
CLI init (#1242)
<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Interactive init workflow (create, link-config, link-cloud) with safe
non-interactive behavior; writes/updates project config and .env, and
prints STACK AUTH setup instructions.
  * CLI assistant/agent with a progress UI for long-running tasks.
* Backend AI proxy endpoint that validates and forwards AI requests to
an external provider.

* **Tests**
* End-to-end tests covering all init modes, outputs, env linking, and
error cases.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-13 10:55:22 -07:00

21 lines
409 B
TypeScript

import { defineConfig, type UserConfig } from 'tsdown';
const config: UserConfig = {
entry: ['src/index.ts'],
sourcemap: true,
clean: false,
dts: true,
outDir: 'dist',
external: ['@anthropic-ai/claude-agent-sdk'],
format: {
esm: {
outExtensions: () => ({ js: '.js', dts: '.d.ts' }),
},
},
banner: {
js: '#!/usr/bin/env node',
},
};
export default defineConfig(config);