Summary
The build scripts in @openuidev/react-ui and @openuidev/browser-bundle use Unix-specific commands (rm -rf and mkdir -p), which are not available in PowerShell/CMD.
As a result, these packages cannot be built on Windows without additional Unix tooling.
What happens
@openuidev/react-ui
packages/react-ui/package.json
"build": "rm -rf dist && pnpm generate:css-utils && pnpm build:scss && pnpm build:tsc && pnpm build:cjs && pnpm run copy-css"
@openuidev/browser-bundle
packages/browser-bundle/package.json
"build": "rm -rf dist && mkdir -p dist && esbuild ..."
Running either build on Windows fails with:
'rm' is not recognized as an internal or external command,
operable program or batch file.
Expected behavior
Workspace packages should build successfully on Windows without requiring Unix shell utilities.
Suggested fix
Replace the shell commands with a cross-platform implementation similar to the approach used in #601.
Environment
- OS: Windows 11
- Shell: PowerShell
- Package Manager: pnpm
Related
Summary
The build scripts in
@openuidev/react-uiand@openuidev/browser-bundleuse Unix-specific commands (rm -rfandmkdir -p), which are not available in PowerShell/CMD.As a result, these packages cannot be built on Windows without additional Unix tooling.
What happens
@openuidev/react-ui
packages/react-ui/package.json@openuidev/browser-bundle
packages/browser-bundle/package.jsonRunning either build on Windows fails with:
Expected behavior
Workspace packages should build successfully on Windows without requiring Unix shell utilities.
Suggested fix
Replace the shell commands with a cross-platform implementation similar to the approach used in #601.
Environment
Related