Skip to main content
Glama
tsup.config.ts620 B
import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['src/index.ts', 'src/cli/index.ts'], format: ['esm'], dts: true, sourcemap: true, clean: true, splitting: false, treeshake: true, minify: false, platform: 'node', target: 'node20', outDir: 'dist', shims: true, // 注意:不打包 node_modules 依赖 // 原因:某些依赖(如 pino)使用动态 require,无法被 ESM bundler 处理 // 因此需要在部署时运行 npm install --production 安装运行时依赖 // tsup 会自动保留源文件中的 shebang,不需要在 banner 中重复添加 });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SupenBysz/gitea-mcp-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server