From dcc7bb1b321610396ebcb7428b85741c7e7ccc94 Mon Sep 17 00:00:00 2001 From: Mint Thompson Date: Fri, 22 Mar 2024 14:58:58 -0400 Subject: [PATCH] Add variations on start and build scripts for Windows systems These scripts set an environment variable before invoking react-app-rewired. The syntax for doing this is different on Windows systems. Two new scripts are defined to make these actions available to Windows users. --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 5b55a2f..cf1ae73 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,9 @@ }, "scripts": { "start": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start", + "start:win": "set NODE_OPTIONS=--openssl-legacy-provider && react-app-rewired start", "build": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired build", + "build:win": "set NODE_OPTIONS=--openssl-legacy-provider && react-app-rewired build", "serve-build": "node scripts/serve-build.js", "lint": "eslint \"./src/**/*.js\"", "lint-fix": "eslint \"./src/**/*.js\" --fix",