Skip to content

chore: migration to tsdown#1038

Merged
tenphi merged 14 commits intomainfrom
chore-build-speed-up
Feb 19, 2026
Merged

chore: migration to tsdown#1038
tenphi merged 14 commits intomainfrom
chore-build-speed-up

Conversation

@tenphi
Copy link
Copy Markdown
Member

@tenphi tenphi commented Feb 17, 2026

Note

Medium Risk
Build/test tooling and package export changes can break consumer imports or publishing if the new dist layout differs from expectations, but changes are largely configuration-focused with limited runtime code impact.

Overview
Switches the library build pipeline to tsdown with unbundled ESM output and generated DTS, updating package entrypoints/exports, published files, and size-limit paths to match the new dist layout.

Migrates testing from Jest to Vitest: removes jest.config.cjs, updates scripts/CI to run vitest, adds vitest.config.ts (including global __UIKIT_VERSION__ define), and updates testing docs/mocks/examples from jest.* to vi.* (including .test.ts discovery). Storybook is updated to ensure the Vite React plugin is configured consistently and to expose __UIKIT_VERSION__ at build time.

Written by Cursor Bugbot for commit b1b932d. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: b1b932d

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Feb 19, 2026 10:25am
cube-ui-kit-cursor Ready Ready Preview, Comment Feb 19, 2026 10:25am

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2026

🧪 Storybook is successfully deployed!

Comment thread package.json
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2026

🏋️ Size limit report

Name Size Passed?
All 354.82 KB (-0.48% 🔽👏) Yes 🎉
Tree shaking (just a Button) 60.08 KB (+0.39% 🔺) Yes 🎉
Tree shaking (just tasty) 36.28 KB (+1.45% 🔺) Yes 🎉

Click here if you want to find out what is changed in this build

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2026

📦 NPM canary release

Deployed canary version 0.0.0-canary-3d0dd31.

Comment thread package.json
tenphi and others added 2 commits February 19, 2026 10:14
Conflict resolutions:

1. NewNotifications test files (4 modify/delete conflicts):
   - Bar/__tests__/notifications-bar.test.tsx
   - NotificationView/notification.test.tsx
   - NotificationsList/notification-list.test.tsx
   - notification.test.tsx
   Resolution: Accepted main's deletions. The feat(Notifications): rework commit
   (#1034) intentionally removed the old NewNotifications test structure as part
   of a full architectural rework. The Vitest migrations on this branch for those
   files are superseded by the deletion.

2. Notifications.test.tsx (new file from main):
   The new Notifications.test.tsx introduced by the rework commit still used
   Jest APIs (jest.mock, jest.fn, jest.useFakeTimers, etc.). Updated all
   references to vi.* equivalents to stay consistent with this branch's
   Jest -> Vitest migration.

3. package.json and .size-limit.cjs (auto-merged):
   - package.json: version bumped from 0.113.1 to 0.114.0 (from main)
   - .size-limit.cjs: bundle size limit reduced from 395kB to 370kB (from main)
   Both auto-merged cleanly with no intervention needed.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Comment thread .storybook/main.js Outdated
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