arch-tsdown

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
arch-tsdown is a TypeScript library starter (based on antfu/starter-ts) that uses tsdown for building. It provides a minimal, opinionated setup: ESM-only output, automatic
.d.ts
generation, pnpm, Vitest, ESLint, and optional npm Trusted Publisher for CI-based releases.
The skill is based on starter-ts (arch-tsdown source), generated at 2026-01-30.
Recommended practices:
  • Build pure ESM; enable
    dts
    and
    exports
    in tsdown config
  • Use npm Trusted Publisher for releases
  • Run publint (via tsdown’s
    publint: true
    ) before publishing
arch-tsdown 是一个基于antfu/starter-ts的TypeScript库启动模板,使用tsdown进行构建。它提供了一个极简且带有预设配置的环境:仅ESM输出、自动生成
.d.ts
文件、pnpm包管理、Vitest测试、ESLint代码检查,以及可选的用于基于CI的发布的npm可信发布工具。
本模板基于starter-ts(arch-tsdown源码)生成,生成时间为2026-01-30。
推荐实践:
  • 构建纯ESM库;在tsdown配置中启用
    dts
    exports
    选项
  • 使用npm可信发布工具进行版本发布
  • 发布前运行publint(通过tsdown的
    publint: true
    配置)

Core References

核心参考文档

TopicDescriptionReference
OverviewProject purpose, structure, when to usecore-overview
tsdown Configentry, dts, exports, publintcore-tsdown-config
Scripts & Releasebuild, dev, start, release, npm Trusted Publishercore-scripts
Package Exportsdist output, types, exports, sideEffectscore-package-exports
pnpm Workspacecatalogs, version management, workspacecore-pnpm-workspace
ToolingESLint, TypeScript, Vitest configcore-tooling
Git Hookssimple-git-hooks, lint-staged, pre-commitcore-git-hooks
CIGitHub Actions — lint, typecheck, test matrixcore-ci
ReleaseTag push, sxzz/workflows, npm Trusted Publishercore-release
TestingVitest, vitest-package-exports, export snapshotscore-testing
主题描述参考链接
概览项目用途、结构、适用场景core-overview
tsdown配置入口文件、dts生成、exports配置、publintcore-tsdown-config
脚本与发布构建、开发、启动、发布、npm可信发布core-scripts
包导出配置构建输出、类型文件、exports配置、sideEffectscore-package-exports
pnpm工作区目录管理、版本控制、工作区配置core-pnpm-workspace
工具链ESLint、TypeScript、Vitest配置core-tooling
Git钩子simple-git-hooks、lint-staged、提交前检查core-git-hooks
CI配置GitHub Actions — 代码检查、类型校验、测试矩阵core-ci
发布流程标签推送、sxzz/workflows、npm可信发布core-release
测试Vitest、vitest-package-exports、导出快照core-testing

Best Practices

最佳实践

TopicDescriptionReference
tsdown & PackageESM, dts, exports, tooling alignmentbest-practices-tsdown
主题描述参考链接
tsdown与包配置ESM、dts、exports、工具链对齐best-practices-tsdown