Skip to content

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

@shogun444

Description

@shogun444

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions