Skip to content

[scripts] generate-css: Await generated CSS writes - #9576

Draft
rishabhx29 wants to merge 1 commit into
mantinedev:masterfrom
rishabhx29:fix/generate-css-await-writes
Draft

rishabhx29 wants to merge 1 commit into
mantinedev:masterfrom
rishabhx29:fix/generate-css-await-writes

Conversation

@rishabhx29

Copy link
Copy Markdown
Contributor

generateCoreCSS starts every processFile promise with forEach and returns without waiting for them. Downstream build steps can therefore run before the generated CSS files are written, and rejected write promises are unhandled.

This PR waits for all local and global file writes with Promise.all. The script has no unit-test harness; it was checked with oxlint and formatting.

@rishabhx29
rishabhx29 marked this pull request as draft December 5, 2026 09:52

This branch has not been deployed

No deployments
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.

1 participant