diff --git a/package.json b/package.json index 05aa5946..fa58b2ae 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "karma-sourcemap-loader": "^0.3.7", "karma-tap-reporter": "0.0.6", "karma-webpack": "^4.0.2", - "mocha": "^8.3.2", + "mocha": "^8.4.0", "mocha-lcov-reporter": "^1.3.0", "nyc": "^15.1.0", "watchify": "^3.11.1", @@ -76,10 +76,10 @@ "jsonld" ], "scripts": { - "prepare": "npm run build", - "prepack": "npm run build", - "build": "npm run build-webpack", - "build-webpack": "webpack", + "prepare2": "npm run build", + "prepack2": "npm run build", + "build": "cross-env NODE_ENV=--openssl-legacy-provider npm run build-webpack ", + "build-webpack": "cross-env NODE_ENV=--openssl-legacy-provider webpack", "fetch-test-suites": "npm run fetch-json-ld-wg-test-suite && npm run fetch-json-ld-org-test-suite && npm run fetch-normalization-test-suite", "fetch-json-ld-wg-test-suite": "npm run fetch-json-ld-api-test-suite && npm run fetch-json-ld-framing-test-suite", "fetch-json-ld-api-test-suite": "if [ ! -e test-suites/json-wg-api ]; then git clone --depth 1 https://github.com/w3c/json-ld-api.git test-suites/json-ld-api; fi",