pentoo-overlay/net-analyzer/greenbone-security-assistant/files/greenbone-security-assistant-9.0.0-reactjs.patch
2019-10-26 18:07:00 +08:00

20 lines
1 KiB
Diff

--- a/gsa/package.json.orig 2019-10-14 20:11:00.000000000 +0800
+++ b/gsa/package.json 2019-10-26 17:15:10.732305426 +0800
@@ -67,12 +67,12 @@
"whatwg-fetch": "^3.0.0"
},
"scripts": {
- "test": "react-scripts test",
- "test:coverage": "react-scripts test --coverage --maxWorkers 2",
+ "test": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js test",
+ "test:coverage": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js test --coverage --maxWorkers 2",
"lint": "eslint --max-warnings 0 src",
- "start": "react-scripts start",
- "build": "react-scripts build",
- "eject": "react-scripts eject",
+ "start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start",
+ "build": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js build",
+ "eject": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js eject",
"storybook": "NODE_PATH=src start-storybook",
"build-storybook": "NODE_PATH=src build-storybook"
},