Skip to content

fix(motion-presets): export public types subpath#218

Open
omribz156 wants to merge 1 commit into
wix:masterfrom
omribz156:codex/export-motion-preset-types
Open

fix(motion-presets): export public types subpath#218
omribz156 wants to merge 1 commit into
wix:masterfrom
omribz156:codex/export-motion-preset-types

Conversation

@omribz156
Copy link
Copy Markdown

Description

Bug fix: exposes the existing @wix/motion-presets type entry as a public package subpath.

packages/motion-presets/vite.config.ts already builds a types entry, but package.json only exported the root module and package.json. This adds @wix/motion-presets/types, so consumers can import preset option types without copying internal definitions.

Related Issue

Fixes #176

Checklist

  • I have read the Contributing Guide
  • I have added/updated tests for my changes (if applicable)
  • I have updated documentation/rules/skills (if applicable)

Screenshots / Demos

Not applicable.

Additional Notes

Verification:

  • yarn install --immutable
  • node -e "...package exports OK"
  • yarn prettier --check packages/motion-presets/package.json
  • git diff --check -- packages/motion-presets/package.json

I also tried yarn workspace @wix/motion-presets run build:types, but it fails on existing type errors unrelated to this metadata-only change, including unresolved @wix/motion imports and implicit any / index errors in preset source files.

nvm use could not switch to .nvmrc's 22.14.0 because that version is not installed locally, so verification used the available Node v24.15.0.

Implemented with Codex assistance; I kept the patch focused and manually reviewed the final diff.

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.

[BUG] Missing type exports of motion-presets

1 participant