Bug: 'set:oss' npm script fails on Windows environments #40

Closed
opened 2026-04-05 17:00:39 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Adarsh-Raj-Jaiswal on 3/30/2026

Describe the Bug

When setting up the project locally on a Windows machine using the standard Command Prompt or PowerShell, the set:oss script in package.json fails to execute.

The script currently relies on Unix-specific syntax (single quotes for string escaping and the cp command), which causes Windows to misinterpret the pipe (|) character as a command pipe rather than a string literal.

Environment

  • OS Type & Version: Windows 11
  • Pangolin Version: v1.16.2
  • Gerbil Version: 1.3.0
  • Traefik Version: 3.6
  • Newt Version: 1.10.3
  • Olm Version: (if applicable)

To Reproduce

Clone the repository on a Windows machine.

Open Windows Command Prompt or PowerShell.

Run npm run set:oss or yarn set:oss.

Expected Behavior

The set:oss script should execute successfully on any operating system (including Windows natively via Command Prompt or PowerShell). It should generate the server/build.ts file containing export const build = "oss" as "saas" | "enterprise" | "oss"; and successfully copy tsconfig.oss.json to tsconfig.json without throwing syntax or unrecognized command errors.

*Originally created by @Adarsh-Raj-Jaiswal on 3/30/2026* ### Describe the Bug When setting up the project locally on a Windows machine using the standard Command Prompt or PowerShell, the set:oss script in package.json fails to execute. The script currently relies on Unix-specific syntax (single quotes for string escaping and the cp command), which causes Windows to misinterpret the pipe (|) character as a command pipe rather than a string literal. ### Environment - OS Type & Version: Windows 11 - Pangolin Version: v1.16.2 - Gerbil Version: 1.3.0 - Traefik Version: 3.6 - Newt Version: 1.10.3 - Olm Version: (if applicable) ### To Reproduce Clone the repository on a Windows machine. Open Windows Command Prompt or PowerShell. Run npm run set:oss or yarn set:oss. ### Expected Behavior The set:oss script should execute successfully on any operating system (including Windows natively via Command Prompt or PowerShell). It should generate the server/build.ts file containing export const build = "oss" as "saas" | "enterprise" | "oss"; and successfully copy tsconfig.oss.json to tsconfig.json without throwing syntax or unrecognized command errors.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#40