Skip to content

fix: use tsdown library packaging#25

Merged
salza80 merged 7 commits into
mainfrom
fixrelease
Jun 29, 2026
Merged

fix: use tsdown library packaging#25
salza80 merged 7 commits into
mainfrom
fixrelease

Conversation

@salza80

@salza80 salza80 commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

This PR migrates the library packaging pipeline from Rollup to tsdown, updating build configuration and package metadata to publish dual ESM/CJS outputs with generated declaration files.

Changes:

Replace Rollup build with tsdown (new tsdown.config.ts, remove rollup.config.js, update npm run build).
Update package exports/types and smoke checks to match new output file names (.mjs/.cjs and .d.mts/.d.cts).
Adjust internal entrypoints/import specifiers to include explicit .js paths for ESM-friendly resolution.

@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/index.mjs 1.3 KB (+0.53% 🔺)
dist/index.cjs 1.65 KB (+17.26% 🔺)

@salza80 salza80 added the bug Something isn't working label Jun 28, 2026

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 packaging pipeline from Rollup to tsdown, updating build configuration and package metadata to publish dual ESM/CJS outputs with generated declaration files.

Changes:

  • Replace Rollup build with tsdown (new tsdown.config.ts, remove rollup.config.js, update npm run build).
  • Update package exports/types and smoke checks to match new output file names (.mjs/.cjs and .d.mts/.d.cts).
  • Adjust internal entrypoints/import specifiers to include explicit .js paths for ESM-friendly resolution.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsdown.config.ts Adds tsdown build configuration (formats, dts, externals, extensions).
tsconfig.build.json Simplifies TS build config now that tsdown drives output and dts generation.
tests/pack/contents.mjs Updates pack test to require new declaration output filenames.
src/plugin/index.ts Updates internal type import to explicit index.js path.
rollup.config.js Removes old Rollup build configuration.
package.json Switches build script to tsdown and updates exports/types metadata accordingly.
package-lock.json Locks updated dependency graph for tsdown and removed Rollup tooling.
index.ts Updates published entrypoint exports/imports to explicit index.js paths.

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

Comment thread package.json
Comment thread package.json
@salza80 salza80 changed the title fix: use tsdown to package fix: use tsdown library packaging Jun 28, 2026
@salza80 salza80 requested a review from Copilot June 28, 2026 19:50

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

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Comment thread package.json Outdated
Comment thread package.json

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

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Comment thread tsconfig.build.json
Comment thread package.json
Comment thread .github/workflows/verification.yml Outdated
Comment thread .github/workflows/test_and_release.yml Outdated

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

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

Comment thread package.json
Comment thread tsconfig.build.json Outdated
@salza80 salza80 merged commit e008516 into main Jun 29, 2026
1 check passed
@salza80 salza80 deleted the fixrelease branch June 29, 2026 07:29
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released on @latest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants