Skip to content

Commit

Permalink
Fixed NODE_ENV is not recognized in Windows Os.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunquakes committed Apr 20, 2024
1 parent 5c7cabb commit b47dd12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .electron-kits/dev-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ const runCommand = (command, name) => {
await server.listen()

// Start electron.
const electronCommand = 'NODE_ENV=development electron .'
const electronCommand = 'cross-env NODE_ENV=development & electron .'
runCommand(electronCommand, 'electron')
})()
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"aws-sdk": "^2.1473.0",
"babel-jest": "^29.7.0",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"electron": "^26.3.0",
"electron-builder": "^24.6.4",
"jest": "^29.7.0",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2532,6 +2532,13 @@ create-jest@^29.7.0:
jest-util "^29.7.0"
prompts "^2.0.1"

cross-env@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
dependencies:
cross-spawn "^7.0.1"

cross-spawn@^7.0.1, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
Expand Down

0 comments on commit b47dd12

Please sign in to comment.