mirror of
https://github.com/ant-design/ant-design-cli.git
synced 2026-09-14 19:07:15 +08:00
0a3b0e3b5f
* chore: upgrade dependencies - @modelcontextprotocol/sdk: 1.27.1 → 1.29.0 - @vitest/coverage-v8: 3.2.4 → 4.1.2 - commander: 13.1.0 → 14.0.3 - oxc-parser: 0.121.0 → 0.123.0 - typescript: 5.7.0 → 5.9.3 (keep v5 for stability) - vitest: 3.0.0 → 4.1.2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: update Quick Start with more commands Add list, doc, env, usage commands to Quick Start examples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: require Node >= 20 for Commander v14 compatibility - Update engines.node from >=18.0.0 to >=20.0.0 - Update tsup build target from node18 to node20 - Update documentation (spec.md, CLAUDE.md) Commander v14 requires Node >= 20. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
653 B
TypeScript
27 lines
653 B
TypeScript
import { defineConfig } from 'tsup';
|
|
import { readFileSync } from 'node:fs';
|
|
|
|
const { version } = JSON.parse(readFileSync('package.json', 'utf-8'));
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['esm'],
|
|
target: 'node20',
|
|
outDir: 'dist',
|
|
clean: true,
|
|
splitting: false,
|
|
sourcemap: false,
|
|
dts: true,
|
|
banner: {
|
|
js: [
|
|
'#!/usr/bin/env node',
|
|
'import { createRequire } from "node:module";',
|
|
'const require = createRequire(import.meta.url);',
|
|
].join('\n'),
|
|
},
|
|
define: {
|
|
__CLI_VERSION__: JSON.stringify(version),
|
|
},
|
|
noExternal: ['commander', '@modelcontextprotocol/sdk', 'envinfo'],
|
|
});
|