Skip to content

Commit ad51792

Browse files
committed
windows cross-env fix
1 parent 37681d4 commit ad51792

File tree

2 files changed

+59
-7
lines changed

2 files changed

+59
-7
lines changed

package-lock.json

Lines changed: 56 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"homepage": "https://universaldatatool.com",
77
"scripts": {
88
"postinstall": "electron-builder install-app-deps",
9-
"start": "PORT=6001 react-scripts start",
9+
"start": "cross-env PORT=6001 react-scripts start",
1010
"build": "npm run build:babel && npm run build:desktop",
11-
"build:babel": "NODE_ENV=production babel ./src --out-dir=./lib && cp ./package.json ./lib/package.json",
11+
"build:babel": "cross-env NODE_ENV=production babel ./src --out-dir=./lib && cp ./package.json ./lib/package.json",
1212
"build:web": "react-scripts build",
13-
"build:desktop": "REACT_APP_DESKTOP=true PUBLIC_URL=./ react-scripts build && electron-builder --linux --mac --windows",
13+
"build:desktop": "cross-env REACT_APP_DESKTOP=true PUBLIC_URL=./ react-scripts build",
1414
"start:desktop": "electron ./desktop",
1515
"release:lib": "npm run build && cd lib && npm publish",
1616
"release:desktop": "npm run build:desktop && electron-builder --mac --windows --linux --publish always",

0 commit comments

Comments
 (0)