Files
skillhub/apps/cli/tsup.config.ts
airano 97b427831a Initial release v1.0.0
Open-source marketplace for AI Agent skills.

Features:
- Next.js 15 web app with i18n (en/fa)
- CLI tool for skill installation (npx skillhub)
- GitHub crawler/indexer with multi-strategy discovery
- Security scanning for all indexed skills
- Self-hostable with Docker

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 06:42:07 +03:30

17 lines
593 B
TypeScript

import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm'],
target: 'node20',
clean: true,
// Bundle skillhub-core into the CLI so the published package
// doesn't depend on a separate npm package that may be outdated
noExternal: ['skillhub-core'],
// gray-matter (dep of skillhub-core) uses CJS require('fs') which
// breaks in ESM bundles - provide a require shim for Node builtins
banner: {
js: `import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);`,
},
});