Skip to content

fix(build): make react-ui and browser-bundle build scripts cross-plat…#604

Open
shogun444 wants to merge 1 commit into
thesysdev:mainfrom
shogun444:fix/cross-platform-build-react-ui-browser-bundle
Open

fix(build): make react-ui and browser-bundle build scripts cross-plat…#604
shogun444 wants to merge 1 commit into
thesysdev:mainfrom
shogun444:fix/cross-platform-build-react-ui-browser-bundle

Conversation

@shogun444
Copy link
Copy Markdown
Contributor

What

Fixes #603 by replacing Unix-specific build commands with cross-platform Node.js helper scripts in @openuidev/react-ui and @openuidev/browser-bundle.

On Windows, builds fail with:

'rm' is not recognized as an internal or external command,
operable program or batch file.

Changes

Replaced rm -rf and mkdir -p usage with Node.js filesystem APIs while preserving the existing build behavior.

Test Plan

  • Not applicable (explain why)
  • Verified locally

Validated on Windows 11 using PowerShell.

@openuidev/react-ui now builds successfully.

@openuidev/browser-bundle progresses past the shell-command failure and reaches the bundling stage. Validation exposed a separate module resolution issue:

Could not resolve "./openuiLibrary.tsx"
Could not resolve "./library.ts"
Could not resolve "./Renderer.tsx"

These errors appear unrelated to the Windows compatibility issue addressed in this PR.

Checklist

  • I linked a related issue, if applicable
  • I updated docs/README when needed
  • I considered backwards compatibility

@vishxrad vishxrad self-requested a review June 4, 2026 20:31
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.

Windows build fails in react-ui and browser-bundle due to Unix-specific build scripts

1 participant