Description
The current build script in each project's package.json uses Unix-style environment variable syntax:
"build": "CI= react-scripts build"
This works on Unix-based systems, but fails on Windows (PowerShell/Command Prompt).
Steps to Reproduce
- Clone the repository.
- Navigate to any project's
final directory.
- Install dependencies:
- Run:
Expected Behavior
The project should build successfully.
Actual Behavior
The following error is displayed on Windows:
'CI' is not recognized as an internal or external command,
operable program or batch file.
Environment
- OS: Windows 11
- Shell: PowerShell
Use a cross-platform approach for setting environment variables, such as cross-env, or update the build script so it works on Windows, macOS, and Linux.
Description
The current
buildscript in each project'spackage.jsonuses Unix-style environment variable syntax:This works on Unix-based systems, but fails on Windows (PowerShell/Command Prompt).
Steps to Reproduce
finaldirectory.Expected Behavior
The project should build successfully.
Actual Behavior
The following error is displayed on Windows:
Environment
Use a cross-platform approach for setting environment variables, such as
cross-env, or update the build script so it works on Windows, macOS, and Linux.