diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json index f0002c6fea5..d39cce7d495 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/package.json @@ -55,6 +55,7 @@ "babel-preset-stage-0": "^6.24.1", "body-parser": "^1.19.0", "chai": "^4.1.2", + "cross-env": "^7.0.0", "css-loader": "^0.28.11", "eslint": "^5.16.0", "eslint-config-prettier": "4.3.0", @@ -100,8 +101,8 @@ "watch": "webpack --watch --mode development", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", - "build_prod": "NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", - "build_dev": "NODE_ENV=development webpack -d --watch ", + "build_prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", + "build_dev": "cross-env NODE_ENV=development webpack -d --watch ", "server": "node-env-run server --exec nodemon | pino-colada", "dev2": "run-p server start", "lint": "eslint \"src/**/*.js\"" diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json index db8ec651f86..56aa61b49bb 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/package.json @@ -44,6 +44,7 @@ "babel-loader": "^8.0.6", "body-parser": "^1.19.0", "chai": "^4.1.2", + "cross-env": "^7.0.0", "css-loader": "^0.28.11", "eslint": "^5.16.0", "eslint-config-prettier": "4.3.0", @@ -87,8 +88,8 @@ "watch": "webpack --watch --mode development", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", - "build_prod": "NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", - "build_dev": "NODE_ENV=development webpack -d --watch ", + "build_prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", + "build_dev": "cross-env NODE_ENV=development webpack -d --watch ", "server": "node-env-run server --exec nodemon | pino-colada", "dev2": "run-p server start", "lint": "eslint \"src/**/*.js\"" diff --git a/components/device-mgt/io.entgra.device.mgt.ui/react-app/package.json b/components/device-mgt/io.entgra.device.mgt.ui/react-app/package.json index f7442919735..84b0d6c4161 100644 --- a/components/device-mgt/io.entgra.device.mgt.ui/react-app/package.json +++ b/components/device-mgt/io.entgra.device.mgt.ui/react-app/package.json @@ -47,6 +47,7 @@ "babel-loader": "^8.0.6", "body-parser": "^1.19.0", "chai": "^4.1.2", + "cross-env": "^7.0.0", "css-loader": "^0.28.11", "eslint": "^5.16.0", "eslint-config-prettier": "4.3.0", @@ -91,8 +92,8 @@ "watch": "webpack --watch --mode development", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", - "build_prod": "NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", - "build_dev": "NODE_ENV=development webpack -d --watch ", + "build_prod": "cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack -p --display errors-only --hide-modules", + "build_dev": "cross-env NODE_ENV=development webpack -d --watch ", "server": "node-env-run server --exec nodemon | pino-colada", "dev2": "run-p server start", "lint": "eslint \"src/**/*.js\""