Skip to content

Commit

Permalink
Use cross-env to support start and build tasks on Mac, Windows, and L…
Browse files Browse the repository at this point in the history
…inux
  • Loading branch information
cmoesel committed Mar 29, 2024
1 parent d35aee9 commit ab0fbac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"express": "^4.18.2",
Expand All @@ -50,10 +51,8 @@
}
},
"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",
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start",
"build": "cross-env 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",
Expand Down

0 comments on commit ab0fbac

Please sign in to comment.