Developer Info
This page briefly summarizes the development workflow for the tanstack-head-controller monorepo.
Prerequisites
- Node.js 22+
- pnpm 10.x
Setup
sh
nish
npm installsh
pnpm installBuild
Run the following from the repository root.
sh
nr buildsh
npm buildsh
pnpm buildInternally, scripts/build.ts does the following for each package.
- Generates JavaScript with SWC
- Generates declaration files (
d.ts) with TypeScript
To build individual packages:
sh
node ./scripts/build.ts tanstack-head-controller
node ./scripts/build.ts thc-plugin-mergeMain packages
packages/tanstack-head-controller: core librarypackages/thc-plugin-merge: head merge pluginpackages/thc-plugin-ttplate: title template pluginexamples/tanstack-react: integration example
Docs update checklist
- If you update Japanese pages, keep English pages in the same structure.
- Keep code block language/file labels aligned (for example,
tsx [router.tsx]). - Verify that all referenced links resolve correctly.
When needed, also see Quick Start and Usage.