chore: modernize template builds, security, and dependencies #6
main fromrefs/pull/6/head·merged by KevinVandy 🎯 Changes#
Bring the starter repository up to the build and release conventions used by Table v9 and Hotkeys, so new libraries inherit the current setup.
- Configure all six package scaffolds as ES2022 ESM with declarations and Node >=20 support. Remove CommonJS, published source, and source maps while preserving the core
./typesentry. - Add strict publint and actual-tarball validation to PR/release checks, and enforce the existing size budget in full builds/tests.
- Update workspace dependencies with
ncu -u -ws --root -x typescript: pnpm 12.6, Nx 23, tsdown 0.23, Vitest 5, Vite 8.3.1, React 19.3, and Store 0.11.1. Keep TypeScript 6.0.3. Align development/CI on Node 24.21.0 and remove the conflicting.npmrcNode pin. - Migrate to Changesets CLI 3, action 2.1.2 with its renamed inputs/output, and the official GitHub changelog generator. Exclude private packages from versioning/tagging. Update and pin GitHub actions, including current TanStack/config shared actions with
# maincomments. This adopts the shared Vite+ setup. - Document the defaults and regenerate reference docs. Document that this repository never releases packages or adds changesets. Gate release scaffolding behind the
ENABLE_RELEASESrepository variable for new libraries.
Security baseline additions:
- Add Zizmor with pinned actions, no write permissions, concurrency control, and a timeout; preserve provenance checks.
- Add CODEOWNERS for sensitive CI/build/dependency files, an importable branch-rules starter, and a security setup guide covering GitHub settings, scanners, private reporting, apps, Nx tokens, and npm trusted publishing.
- Scope release permissions to its job, explain each write permission, limit Nx tokens to test/build steps, and prevent newer pushes from canceling an active release.
- Configure Renovate action digest pinning, manual review of action updates, a one-day npm release delay, and the existing TypeScript hold. Resolve stale transitive ESLint/Vite peer constraints and lock preview tooling in the workspace instead of downloading an unpinned CLI in CI.
- Add CodeRabbit contributor/agent guidance, LF normalization, and broader
.env.*exclusions while allowing example files.
Addresses the requested action-comment change: all shared action references carry # main, with their SHA updated to match the reviewed upstream branch revision.
GitHub settings are separate from scaffold files: the audit found no Template branch rulesets, disabled secret scanning/push protection/private reporting, and unconfigured CodeQL default setup. This PR supplies a setup guide and importable ruleset; it does not change live repository administration settings or claim those controls are enabled.
The pnpm policy exceptions are limited to the reviewed vite@8.3.1 patch release published today and the legacy semver@6.3.1 trust exception also used by Hotkeys.
Validation on Node 24.21.0: pnpm test and pnpm test:pr pass (35 main tasks plus lint); all four example builds/types, all six packed artifacts, root TypeScript/script lint, formatting, docs generation/link checks, and frozen install pass. Packed consumers pass Bundler and NodeNext type checks; core and ./types runtime imports pass on Node 20.0.0. An isolated fixture verified the scaffold’s Changesets 3 versioning; no changeset or version bump is included in this template repository. Core size is 1.57 kB against the 8 kB budget.
Security validation: Zizmor 1.30.1 online scan, Renovate 44.115.0 config validation, and dependency peer checks pass locally. GitHub CI passes on b6827ed: Test, Zizmor, provenance, preview publication, version preview, autofix, and Socket checks. The requested review change is addressed; reviewer reapproval remains pending.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested this code locally with
pnpm run test:pr.
🚀 Release Impact#
No release. This template repository never publishes packages or adds changesets.
- 1
🚀 Changeset Version Preview#
No changeset entries found. Merging this PR will not cause a version bump for any packages.
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
More templates
@tanstack/react-template
npm i https://pkg.pr.new/TanStack/template/@tanstack/react-template@6@tanstack/react-template-devtools
npm i https://pkg.pr.new/TanStack/template/@tanstack/react-template-devtools@6@tanstack/solid-template
npm i https://pkg.pr.new/TanStack/template/@tanstack/solid-template@6@tanstack/solid-template-devtools
npm i https://pkg.pr.new/TanStack/template/@tanstack/solid-template-devtools@6@tanstack/template
npm i https://pkg.pr.new/TanStack/template/@tanstack/template@6@tanstack/template-devtools
npm i https://pkg.pr.new/TanStack/template/@tanstack/template-devtools@6commit:
b6827edcrutchcorn(GitHub profile, opens in a new tab) requested changes
@@ -18,6 +18,8 @@1818 runs-on: ubuntu-latest1919 steps:2020 - name: Checkout21- uses: actions/checkout@v6.0.221+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.122+ with:23+ persist-credentials: false2224 - name: Setup Tools23- uses: TanStack/config/.github/setup@main25+ uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3We should have a
# maincomment, to satisfy ZizmorKevinVandy changed the title
KevinVandy merged thisf51d5b5
KevinVandy closed this
Sign in to join this conversation.
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Advanced
Run ID:
6819bead-aec6-4c2a-a01a-2df36416bfdc📥 Commits
Reviewing files that changed from the base of the PR and between 617c8b7b1307f006766ce8780844cf5d66cf09b7 and 6b14622fa131792309bf8f9ff05f41f085ecf60c.
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml📒 Files selected for processing (52)
.changeset/config.json.github/pull_request_template.md.github/workflows/autofix.yml.github/workflows/pr.yml.github/workflows/release.yml.npmrc.nvmrcAGENTS.mdCONTRIBUTING.mdREADME.mdTEMPLATE_GUIDE.mddocs/framework/react/reference/functions/useTemplate.mddocs/framework/react/reference/index.mddocs/framework/solid/reference/functions/createTemplateSignal.mddocs/framework/solid/reference/index.mddocs/installation.mddocs/reference/classes/Template.mddocs/reference/functions/createTemplate.mddocs/reference/index.mddocs/reference/interfaces/TemplateOptions.mdexamples/react/basic/package.jsonexamples/react/basic/tsconfig.jsonexamples/react/devtools/package.jsonexamples/react/devtools/tsconfig.jsonexamples/solid/basic/package.jsonexamples/solid/basic/tsconfig.jsonexamples/solid/devtools/package.jsonexamples/solid/devtools/tsconfig.jsonknip.jsonnx.jsonpackage.jsonpackages/react-template-devtools/README.mdpackages/react-template-devtools/package.jsonpackages/react-template-devtools/tsdown.config.tspackages/react-template/README.mdpackages/react-template/package.jsonpackages/react-template/tsdown.config.tspackages/solid-template-devtools/README.mdpackages/solid-template-devtools/package.jsonpackages/solid-template-devtools/tsdown.config.tspackages/solid-template/README.mdpackages/solid-template/package.jsonpackages/solid-template/tsdown.config.tspackages/template-devtools/README.mdpackages/template-devtools/package.jsonpackages/template-devtools/tsdown.config.tspackages/template/README.mdpackages/template/package.jsonpackages/template/tsdown.config.tspnpm-workspace.yamlscripts/verify-package.tstsconfig.json💤 Files with no reviewable changes (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.
📝 Walkthrough
Walkthrough#
The pull request updates template packages to publish ES2022 ESM output with declarations and Node.js 20 support. It adds packed-package validation, updates repository tooling and examples, and changes release workflows, contributor guidance, and reference documentation.
Changes#
Template package output and verification
packages/*/package.json,packages/*/tsdown.config.ts,scripts/verify-package.ts,nx.json,package.json,tsconfig.json,docs/installation.md,TEMPLATE_GUIDE.md,README.md,packages/*/README.md.d.tsdeclarations, Node.js 20 minimums, anddist-only published files. Builds target ES2022 and disable source maps.test:buildruns package checks, including tarball verification; CI scripts include the target. Documentation describes the package requirements and validation..npmrc,.nvmrc,package.json,pnpm-workspace.yaml,knip.json,examples/react/*,examples/solid/*.changeset/config.json,.github/pull_request_template.md,.github/workflows/*,AGENTS.md,CONTRIBUTING.md,TEMPLATE_GUIDE.md,README.md,packages/*/README.mdENABLE_RELEASES. Contributor and README guidance reflects the template repository’s release and versioning rules.docs/reference/*,docs/framework/react/reference/*,docs/framework/solid/reference/*TemplateOptions.messageis documented as optional.Priority: ⬇️ Low
Estimated code review effort: 4 (Complex) | ~60 minutes
Change: Other
Merge Risk: ⚪ Minimal · up to
6b146The template updates appear mergeable after normal checks; no actionable blocking issue remains.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 7 files. (39 skipped: 39 unsupported.)
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share