Windows compatibility
Description
Many packages in the Rocket.Chat monorepo use Unix-specific commands like rm -rf in their build scripts, which don't work natively on Windows. This causes build failures for Windows developers and creates an unnecessary barrier to contribution.
Current Behavior
Build scripts in numerous packages use Unix-specific commands:
rm -rf dist && tsc -p tsconfig.json- Other Unix-specific commands that fail on Windows
Expected Behavior
All build scripts should use cross-platform alternatives:
- Replace
rm -rfwithrimraf - Ensure all scripts work on Windows, macOS, and Linux
Impact
This issue affects at least 35 packages across the monorepo, creating a significant barrier for Windows developers.
Proposed Solution
- Add
rimrafas a dev dependency to the root package.json - Update all package.json files to use
rimrafinstead ofrm -rf - Create automated scripts to ensure future packages follow cross-platform practices
Environment
- Rocket.Chat Version: 7.4.0
- Operating System: Windows
i'd love to work on it
Moved this to feature request repo - it will stay a wontfix for now, but for keeping a record.
Rocket won't build natively on Windows.
It requires WSL2.
https://developer.rocket.chat/docs/linux-and-windows-rocketchat-development-environment
Also the command has a dependency on node. If you remove node you could be left with Rocket code you can't remove.
rm -rf does not.