fix(plugin): publish types entrypoint#273
Conversation
|
@jaasieldelgado131 is attempting to deploy a commit to the Grozav Pro Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 42060eb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
This PR fixes the published @styleframe/plugin/types subpath by adding a missing build entry so the package tarball contains the corresponding runtime stub (dist/types.js) and TypeScript declarations (dist/types.d.ts).
Changes:
- Added
tooling/plugin/src/types.tsas a build entry that type-reexports the plugin option types. - Added a patch changeset to publish the fix.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tooling/plugin/src/types.ts | Adds a dedicated types entrypoint that re-exports Options (and any future public types) from src/plugin/types. |
| .changeset/tidy-foxes-build.md | Declares a patch release for @styleframe/plugin to ship the fixed ./types entrypoint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
src/types.tsbuild entry for the existing@styleframe/plugin/typesexportdist/types.jsanddist/types.d.tsReproduction
@styleframe/plugin@3.4.0publishes./types: ./dist/types.js, but its npm tarball does not contain that file. A cleanimport(@styleframe/plugin/types)fails withERR_MODULE_NOT_FOUND.Verification
pnpm --filter @styleframe/plugin buildpnpm packcontainsdist/types.jsanddist/types.d.tsimport(@styleframe/plugin/types)passesOptionsfrom@styleframe/plugin/typesoxfmt --check tooling/plugin/src/types.tsgit diff --checkThe package test/typecheck commands require built workspace dependencies. On Windows, the dependency build currently stops in
@styleframe/corewith the pre-existingstyleframe:dual-declarationsdistENOENT; the plugin build itself completes successfully.