arch-tsdown-cli

v2026.09.24

TypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher.

GitHub
安装命令
npx skhub add hairyf/arch-tsdown-cli
Markdown
SKILL.md

arch-tsdown-cli is a TypeScript CLI package starter (based on hairyf/starter-cli) that uses tsdown for building. It provides a minimal, opinionated setup: dual surface (library + bin), ESM-only output, automatic .d.ts generation, dev bin via tsx, pnpm, Vitest, ESLint, and optional npm Trusted Publisher for CI-based releases.

The skill is based on starter-cli (arch-tsdown-cli source), generated at 2026-01-30.

Recommended practices:

  • Use dev bin (tsx) locally and prod bin (dist) in publishConfig
  • Build pure ESM; enable dts and keep external for dependencies
  • Use npm Trusted Publisher for releases

Core References

TopicDescriptionReference
OverviewProject purpose, structure, when to usecore-overview
Bin Entrydev vs prod bin, shebang, tsxcore-bin-entry
tsdown Configentry, format, dts, externalcore-tsdown-config
Scripts & Releasebuild, dev, start, release, npm Trusted Publishercore-scripts
Package Exportsdist, bin, publishConfig, filescore-package-exports
ToolingESLint, TypeScript, Vitest configcore-tooling
Git Hookssimple-git-hooks, lint-staged, pre-commitcore-git-hooks
CIGitHub Actions — lint, typecheck, test matrixcore-ci
TestingVitest, vitest-package-exportscore-testing

Best Practices

TopicDescriptionReference
CLI & Packagebin, ESM, dts, external, releasebest-practices-cli
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/arch-tsdown-cli

默认分支

main

最新提交

4f463c7

Tree SHA

73bcd03