Skip to content

Build Fails on Windows Due to Unix Shell Commands #787

@sidgaikwad

Description

@sidgaikwad

Issue: Build Fails on Windows Due to Unix Shell Commands

Description

The build script in packages/core fails on Windows with the following error:

The syntax of the command is incorrect.

This happens because the build scripts use Unix shell commands (rm -rf, mkdir -p, cp) which are not supported in Windows Command Prompt or PowerShell.

Affected scripts in packages/core/package.json:

"move:python": "mkdir -p dist/src/python && cp src/python/*.py dist/src/python",
"move:rb": "mkdir -p dist/src/ruby && cp src/ruby/*.rb dist/src/ruby",
"build": "rm -rf dist && tsc && npm run move:python && npm run move:rb && npm run move:steps"

Steps to Reproduce

  1. Clone the repo on a Windows machine.
  2. install all the dependencies
  3. Run the dev build:
pnpm run dev
  1. The build fails with the above error.

Expected Behavior

Build should work cross-platform, including Windows, macOS, and Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions