Skip to content

fix: make PostCSS plugin patching idempotent#34

Merged
Austin1serb merged 4 commits intomainfrom
fix/postcss-plugin-idempotent
Apr 7, 2026
Merged

fix: make PostCSS plugin patching idempotent#34
Austin1serb merged 4 commits intomainfrom
fix/postcss-plugin-idempotent

Conversation

@Austin1serb
Copy link
Copy Markdown
Member

Summary

  • prevent duplicate @react-zero-ui/core/postcss inserts in array-style PostCSS configs
  • keep object-style configs idempotent too
  • add regression tests for repeat patching runs

Testing

  • pnpm --dir packages/core exec tsx --test src/postcss/ast-generating.test.ts src/postcss/helpers.test.ts

Closes #33

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 6, 2026

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

Project Deployment Actions Updated (UTC)
react-zero-ui Ready Ready Preview, Comment Apr 7, 2026 0:15am

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb1b992e40

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Member Author

@Austin1serb Austin1serb left a comment

Choose a reason for hiding this comment

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

looks good

@Austin1serb Austin1serb merged commit 98cb218 into main Apr 7, 2026
3 checks passed
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.

CLI can duplicate the Zero-UI PostCSS plugin in postcss.config

1 participant