mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 21:59:09 -05:00
[GH-ISSUE #2740] Bug: 'set:oss' npm script fails on Windows environments #4171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Adarsh-Raj-Jaiswal on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2740
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
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.