You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Expose `lib` API and tsdown types via new exports; update build to bundle tsdown entries with generated d.ts and refine import rewriting/external handling.
>
> - **CLI**:
> - Add `exports.{ "./lib": { import: "./dist/lib.js", types: "./dist/lib.d.ts" } }` in `packages/cli/package.json`.
> - Extend `UserConfig` to accept `lib` options and add `src/lib.ts` re-exporting core `lib` APIs.
> - **Core**:
> - `RewriteImportsPlugin`: switch to `resolveId` with `{ order: 'pre', handler }`.
> - Build system (`build.ts`):
> - Adjust externals filtering (include `yaml` and `vite/` patterns) and place `RewriteImportsPlugin` before transforms.
> - Bundle tsdown with multiple inputs (`run`, `index`) and generate type declarations via `rolldown-plugin-dts` for `index-types`.
> - `package.json`: add `exports["./lib"]` pointing to `dist/tsdown/index.mjs` with `types`.
> - **Dependencies**:
> - Add `rolldown-plugin-dts`, `hookable`, and `pkg-types`; lockfile updates accordingly.
>
> <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 20c2492. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments