-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Theme: Fix Windows build using cross-env for environment variables #72944
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +116 B (0%) Total Size: 2.45 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated the cross-env fix. npm run build failed as expected prior, then succeeded when this PR was applied.
Thanks @aduth!
What?
Fixes an issue where the theme package can't be built on Windows.
Example: https://github.com/WordPress/wordpress-develop/actions/runs/19047308051/job/54400032675
Related Slack discussion: https://wordpress.slack.com/archives/C02RQBWTW/p1762200484307419
Error:
Why?
wordpress-developbuildHow?
Uses
cross-envpackage to define environment variables. We use the package elsewhere in the project for the same purpose.Testing Instructions
Ensure that the build script finishes successfully, with no errors or local changes to your working branch:
Ideally you'd also test this on a Windows machine if you have one available.