Skip to content

chore(deps-dev): bump tsdown to 0.22.0#1908

Open
BarryThePenguin wants to merge 2 commits into
honojs:mainfrom
BarryThePenguin:chore/upgrade-tsdown
Open

chore(deps-dev): bump tsdown to 0.22.0#1908
BarryThePenguin wants to merge 2 commits into
honojs:mainfrom
BarryThePenguin:chore/upgrade-tsdown

Conversation

@BarryThePenguin
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tsdown.config.ts
dts: {
sourcemap: true,
},
exports: true,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Newer versions of tsdown are able to "Auto-Generating Package Exports"

Comment on lines +6 to +8
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Enabling Auto Exports means tsdown manages these fields for us

],
"scripts": {
"build": "tsdown",
"format": "prettier --check . --ignore-path ../../.gitignore",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I also removed the format script from workspaces as they're no longer used

Comment on lines -4 to -10
attw: true,
clean: true,
dts: true,
entry: 'src/index.ts',
format: ['cjs', 'esm'],
publint: true,
tsconfig: 'tsconfig.build.json',
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Workspace configuration now inherit's root configuration, so a lot of this can be removed

Comment on lines +4 to +11
attw: {
profile: 'node16',
},
entry: {
index: 'src/index.ts',
node: 'src/transpilers/node.ts',
wasm: 'src/transpilers/wasm.ts',
},
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Some packages required extra configuration to make sure the generated exports were correct.

Here we have to map specific exports to the correct files

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 28, 2026

⚠️ No Changeset found

Latest commit: e4e2375

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.01%. Comparing base (4dca7a0) to head (e4e2375).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1908      +/-   ##
==========================================
- Coverage   92.02%   92.01%   -0.01%     
==========================================
  Files         115      115              
  Lines        3936     3932       -4     
  Branches     1011     1011              
==========================================
- Hits         3622     3618       -4     
  Misses        282      282              
  Partials       32       32              
Flag Coverage Δ
bun-compress 78.94% <ø> (ø)
bun-transpiler 97.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BarryThePenguin
Copy link
Copy Markdown
Contributor Author

Whoops! I failed a rebase.. should be ready now

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.

1 participant