tanstack-cli
Original:🇺🇸 English
Translated
TanStack Config for shared build tooling, Vite plugins, and package configuration across TanStack projects. Use when configuring TanStack library builds or contributing to TanStack packages. Use for tanstack-config, tanstack-cli, vite-plugin, package-config, library-build.
2installs
Sourceoakoss/agent-skills
Added on
NPX Install
npx skill4agent add oakoss/agent-skills tanstack-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →TanStack Config
Overview
TanStack Config provides opinionated tooling to build, version, and publish JavaScript/TypeScript packages with minimal configuration and consistent results. It uses Vite for library builds with automatic dual ESM/CJS output and type generation, plus automated publishing with conventional-commit-based versioning.
When to use: Building TanStack libraries or packages that follow TanStack conventions, contributing to TanStack open-source projects, setting up dual ESM/CJS library builds with Vite, automating package publishing with conventional commits.
When NOT to use: Application builds (use framework-specific tooling), non-library projects, projects not using pnpm, projects that need non-Vite build pipelines.
Quick Reference
| Pattern | API / Package | Key Points |
|---|---|---|
| Vite build config | | Merge with |
| Entry point | | Single file or array of entry files |
| Source directory | | Used for declaration file generation |
| CJS output | | Generates |
| External deps | | Auto-detected from |
| Bundled deps | | Bundle instead of externalize |
| Exclude from types | | Patterns to skip during type generation |
| Custom tsconfig | | Override default tsconfig for builds |
| Declaration hook | | Transform |
| Publish automation | | Conventional commits drive versioning |
| Branch configs | | Control prerelease and stable channels |
| Package list | | Monorepo package definitions |
| Build script | | Standard build with strict linting |
Common Mistakes
| Mistake | Correct Pattern |
|---|---|
Missing | Set |
Using | Use |
Forgetting | Both are required for |
Missing | Define |
Not awaiting | Handle with |
| Using npm or yarn instead of pnpm | pnpm is the only supported package manager |
Omitting | Add |
Setting | Manual version tags must start with |
| Wrong commit type for release level | |
Requirements
- Node.js v18.17+
- pnpm v8+
- Git CLI
- GitHub CLI (pre-installed on GitHub Actions)
- Vite (peer dependency for build config)
- publint (recommended for build validation)
Delegation
- Build configuration review: Use agent to verify Vite config and
Taskexportspackage.json - Publishing workflow setup: Use agent to check CI/CD integration patterns
Explore - Package validation: Run after builds to catch packaging issues
publint --strict
References
- Configuration and Vite plugin setup
- Publishing and version management