Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postcss: Bring back proper type exports #14256

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

philipp-spiess
Copy link
Member

@philipp-spiess philipp-spiess commented Aug 26, 2024

Closes #14253

Since we changed the export strategy for the postcss client in #14132, we accidentally no longer generated type exports for this package.

This PR adds a type export back. We now use a similar pattern to the ./colors and ./defaultTheme exports in the tailwindcss package where we have a separate cjs entrypoint.

The changes were validated manually in a playground project that were installing the updated dependencies from tarballs.

Here is one example of it working as expected:

Screenshot 2024-08-26 at 14 10 07

@philipp-spiess philipp-spiess merged commit ab89727 into next Aug 26, 2024
2 checks passed
@philipp-spiess philipp-spiess deleted the fix/postcss-plugin-type-export branch August 26, 2024 13:54
philipp-spiess added a commit that referenced this pull request Aug 27, 2024
Closes #14253

Since we changed the export strategy for the postcss client in #14132,
we accidentally no longer generated type exports for this package.

This PR adds a type export back. We now use a similar pattern to the
`./colors` and `./defaultTheme` exports in the tailwindcss package where
we have a separate cjs entrypoint.

The changes were validated manually in a playground project that were
installing the updated dependencies from tarballs.

Here is one example of it working as expected:
 
<img width="750" alt="Screenshot 2024-08-26 at 14 10 07"
src="https://github.com/user-attachments/assets/83de15f2-1543-4805-9231-9b8df1636c5e">
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.

[v4] Broken types on @tailwindcss/postcss from version 4.0.0-alpha.19
2 participants