make it work with nodejs 17

This commit is contained in:
Nawaz Dhandala
2022-01-24 19:00:53 +00:00
parent 1b99660b9b
commit 7f4414d022
4 changed files with 8 additions and 8 deletions

View File

@@ -41,8 +41,8 @@
"workbox-build": "^6.1.5"
},
"scripts": {
"dev": "PORT=3003 react-scripts start",
"build": "react-scripts build && npm run build-sw",
"dev": "PORT=3003 react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build && npm run build-sw",
"build-sw": "node ./src/sw-build.js",
"test": "jest --forceExit --runInBand ./src/test/*.test.js",
"enterprise-test": "jest --forceExit --runInBand ./src/test/*.test.enterprise.js",

View File

@@ -42,8 +42,8 @@
"valid-url": "^1.0.9"
},
"scripts": {
"dev": "PORT=3100 react-scripts start",
"build": "react-scripts build",
"dev": "PORT=3100 react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
"test": "jest --forceExit --runInBand ./src/test/*.test.js",
"enterprise-test": "jest --forceExit --runInBand ./src/test/*.test.enterprise.js",
"start": "node index.js",

View File

@@ -94,8 +94,8 @@
},
"scripts": {
"lint": "eslint .",
"dev": "PORT=3000 react-scripts start",
"build": "react-scripts build && npm run build-sw",
"dev": "PORT=3000 react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build && npm run build-sw",
"postbuild": "purgecss --css build/assets/css/*.css --content build/index.html build/static/js/*.js --output build/assets/css",
"build-sw": "node ./src/sw-build.js",
"test": "jest --forceExit --testSequencer ./src/test/puppeteer/CustomSequencer.js --runInBand ./src/test/puppeteer/*.test.js",

View File

@@ -53,9 +53,9 @@
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "node index.js",
"build": "react-scripts build",
"build": "react-scripts --openssl-legacy-provider build",
"postbuild": "shx cp robots.txt build",
"dev": "export PORT=3006 && react-scripts start",
"dev": "export PORT=3006 && react-scripts --openssl-legacy-provider start",
"test": "mocha --exit ./src/test/statusPage.test.js",
"eject": "react-scripts eject",
"snapshots": "cross-env CI=true react-scripts test --env=jsdom --coverage --coverage",