Skip to content

Comments

Align monorepo configuration with Kubb structure and migrate to tsdown#116

Closed
Copilot wants to merge 9 commits intomainfrom
copilot/update-template-monorepo-support
Closed

Align monorepo configuration with Kubb structure and migrate to tsdown#116
Copilot wants to merge 9 commits intomainfrom
copilot/update-template-monorepo-support

Conversation

Copy link

Copilot AI commented Jan 8, 2026

Update template based on Kubb repo monorepo support changes

Summary

This PR successfully updates the template repository to align with the monorepo structure and configuration used in the Kubb repository (https://github.com/kubb-labs/kubb). All changes have been implemented, tested, and verified.

Completed Changes

  • Update pnpm-workspace.yaml to use the simplified format (remove comments, simplify glob patterns)
  • Update turbo.json to use modern v2 configuration format (tasks instead of pipeline, add globalDependencies and globalEnv)
  • Update package.json workspace configuration to match Kubb's simplified approach
  • Update package.json scripts to align with Kubb's conventions (alphabetical ordering, comment scripts at top)
  • Update dependency versions to match Kubb's modern versions
  • Update package manager version to match Kubb's requirements (pnpm@10.24.0)
  • Update node version requirement to >=20 to match Kubb
  • Update all package-level package.json files with new pnpm and node versions
  • Fix typecheck task to maintain build dependency (our template needs this unlike Kubb)
  • Verify pnpm install works with new configuration
  • Test the build and verify monorepo structure works correctly
  • Run code review and address feedback
  • Run security checks
  • Expand README with comprehensive documentation
  • Replace tsup with tsdown for build tooling (matching Kubb)

Key Improvements

  1. Modern Tooling: Upgraded to latest versions of Turbo, Biome, Vitest, and other tools
  2. Better Build Configuration: Turbo v2 format with explicit inputs/outputs for better caching
  3. Stricter Requirements: Node >=20 and pnpm >=10 for better compatibility
  4. Cleaner Configuration: Simplified workspace patterns and removed redundant comments
  5. Comprehensive Documentation: Expanded README with setup guide, available scripts, and development workflow
  6. tsdown Build System: Migrated from tsup to tsdown (v0.18.4) for modern TypeScript bundling, matching Kubb's approach

Build System Migration

  • Renamed packages/config/tsup-config to packages/config/tsdown-config
  • Updated all package build scripts from tsup to tsdown
  • Converted all tsup.config.ts files to tsdown.config.ts with tsdown configuration
  • Updated package exports to use .mjs (ESM) and .cjs (CommonJS) extensions
  • Updated TypeScript declaration file references to .d.mts and .d.cts
  • Simplified build configurations using tsdown's modern API

Testing Results

  • ✅ pnpm install: successful
  • ✅ pnpm run clean: successful
  • ✅ pnpm run build: successful (all packages build correctly with tsdown)
  • ✅ pnpm run typecheck: successful (with proper build dependencies)
  • ✅ Code review: passed (1 issue found and fixed)
  • ✅ Security scan: no issues (configuration files only)
Original prompt

Update template based on changes in the Kubb repo for monorepo support


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Jan 8, 2026
@codesandbox
Copy link

codesandbox bot commented Jan 8, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 8, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copilot AI and others added 3 commits January 8, 2026 12:01
Co-authored-by: stijnvanhulle <5904681+stijnvanhulle@users.noreply.github.com>
Co-authored-by: stijnvanhulle <5904681+stijnvanhulle@users.noreply.github.com>
Co-authored-by: stijnvanhulle <5904681+stijnvanhulle@users.noreply.github.com>
Copilot AI changed the title [WIP] Update template for monorepo support in Kubb repo Align monorepo configuration with Kubb structure Jan 8, 2026
Copilot AI requested a review from stijnvanhulle January 8, 2026 12:09
@stijnvanhulle stijnvanhulle marked this pull request as ready for review January 8, 2026 12:10
@stijnvanhulle
Copy link
Owner

@copilot Update readme to have more information about the template

Co-authored-by: stijnvanhulle <5904681+stijnvanhulle@users.noreply.github.com>
Copy link
Author

Copilot AI commented Jan 8, 2026

@copilot Update readme to have more information about the template

Updated the README with comprehensive documentation including:

  • Table of contents for easy navigation
  • Expanded features list with current tech stack (Biome, Vitest, Turborepo v2, etc.)
  • Tech stack section with version information
  • Package structure overview
  • Getting started guide with prerequisites and installation steps
  • Complete list of available scripts with descriptions
  • Development workflow guide including changeset usage
  • Contributing guidelines

Commit: de88f53

@stijnvanhulle
Copy link
Owner

@copilot repalce tsup with tsdown like we have done for the Kubb repo

Removed packageManager field from package.json.
Removed packageManager field and adjusted engines.
Removed logo and screenshot from the README.
@stijnvanhulle
Copy link
Owner

@copilot Add support for AGENTS.md based on AGENTS.md

Co-authored-by: stijnvanhulle <5904681+stijnvanhulle@users.noreply.github.com>
Copy link
Author

Copilot AI commented Jan 8, 2026

@copilot repalce tsup with tsdown like we have done for the Kubb repo

Replaced tsup with tsdown across the entire monorepo:

  • Renamed packages/config/tsup-configpackages/config/tsdown-config
  • Updated all build scripts from tsup to tsdown (v0.18.4)
  • Converted all tsup.config.ts files to tsdown.config.ts with tsdown configuration
  • Updated package exports to use .mjs (ESM) and .cjs (CommonJS) extensions
  • Updated TypeScript declaration references to .d.mts and .d.cts
  • Updated turbo.json to reference tsdown.config.ts
  • Updated README to reference tsdown instead of TSUP

All packages build successfully with tsdown and typecheck passes.

Commit: 6d9e3e5

Copilot AI changed the title Align monorepo configuration with Kubb structure Align monorepo configuration with Kubb structure and migrate to tsdown Jan 8, 2026
@stijnvanhulle stijnvanhulle deleted the copilot/update-template-monorepo-support branch January 8, 2026 12:26
Copilot stopped work on behalf of stijnvanhulle due to an error January 8, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants