Skip to content

Updates - #252

Merged
gilbarbara merged 2 commits into
mainfrom
updates
Jun 30, 2026
Merged

Updates#252
gilbarbara merged 2 commits into
mainfrom
updates

Conversation

@gilbarbara

Copy link
Copy Markdown
Owner

This pull request updates the build system and configuration for the project, moving from tsup to tsdown, and improves type export handling and package compatibility. It also modernizes CI dependencies and updates several development dependencies for better compatibility and maintenance.

Build system migration and configuration:

  • Replaced tsup with tsdown for building the package, updating related scripts and configuration in package.json and documentation in CLAUDE.md. The build now outputs named exports and cleans the dist folder by default. [1] [2] [3] [4] [5]
  • Updated main entry points and type exports in package.json to use .cjs, .mjs, and .cts/.mts files, improving compatibility with modern bundlers and TypeScript. [1] [2]

Dependency and CI updates:

  • Upgraded various GitHub Actions in .github/workflows/ci.yml to their latest major/minor versions for improved security and reliability. [1] [2] [3]
  • Updated several devDependencies to latest versions in package.json, including @arethetypeswrong/cli, @gilbarbara/eslint-config, @types/node, @types/react, @vitejs/plugin-react, @vitest/coverage-v8, prettier, react, react-dom, start-server-and-test, typescript, and vitest. Also removed unused dependencies (del-cli, fix-tsup-cjs, tsup).

Workspace and build tool overrides:

  • Added pnpm-workspace.yaml with explicit build tool allowances and overrides for esbuild and vite versions to ensure consistent builds across environments.

- migrate to tsdown (drop commonjs default fix)
- migrate typescript to 6.x
Copilot AI review requested due to automatic review settings June 30, 2026 14:27
@codesandbox

codesandbox Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the library build pipeline from tsup to tsdown, updates package entrypoints/type export wiring for dual ESM/CJS publishing, and modernizes CI and dependency versions to improve long-term compatibility.

Changes:

  • Switch build/watch scripts and bundler config from tsup to tsdown, adjusting output expectations to .cjs/.mjs and per-condition type exports.
  • Update package.json exports and types metadata to explicitly provide ESM/CJS runtime entries and corresponding .d.mts/.d.cts type entries.
  • Refresh GitHub Actions versions and add a workspace config file to control build approvals and dependency overrides.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsconfig.json Removes downlevelIteration from compiler options while keeping ES2020 target/no-emit settings.
pnpm-workspace.yaml Adds pnpm workspace-level build allowances and dependency overrides (esbuild/vite).
package.json Migrates to tsdown, updates exports/type entrypoints, refreshes dev dependencies, and pins pnpm via packageManager.
CLAUDE.md Updates contributor documentation to reflect the tsdown build pipeline.
.github/workflows/ci.yml Updates action versions and keeps validate/publish jobs for CI and tagged releases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
@sonarqubecloud

Copy link
Copy Markdown

@gilbarbara
gilbarbara merged commit 8f01244 into main Jun 30, 2026
5 checks passed
@gilbarbara
gilbarbara deleted the updates branch June 30, 2026 16:32
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