feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

Windows compatibility

Open blackmamba1231 opened this issue 9 months ago • 3 comments

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 -rf with rimraf
  • 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

  1. Add rimraf as a dev dependency to the root package.json
  2. Update all package.json files to use rimraf instead of rm -rf
  3. Create automated scripts to ensure future packages follow cross-platform practices

Environment

  • Rocket.Chat Version: 7.4.0
  • Operating System: Windows

blackmamba1231 avatar Mar 08 '25 11:03 blackmamba1231

i'd love to work on it

blackmamba1231 avatar Mar 08 '25 11:03 blackmamba1231

Moved this to feature request repo - it will stay a wontfix for now, but for keeping a record.

debdutdeb avatar Mar 08 '25 17:03 debdutdeb

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.

reetp avatar Mar 13 '25 21:03 reetp