From 6dd8257903255f44cf6d8c0af8f1126eb408c76e Mon Sep 17 00:00:00 2001 From: Julian Skinner Date: Wed, 31 Jul 2024 13:27:06 -0500 Subject: [PATCH] ci: add NODE_OPTIONS to preversion script --- packages/sage-assets/package.json | 2 +- packages/sage-react/package.json | 2 +- packages/sage-system/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sage-assets/package.json b/packages/sage-assets/package.json index 2a4fdfe6a9..876b238a22 100644 --- a/packages/sage-assets/package.json +++ b/packages/sage-assets/package.json @@ -28,7 +28,7 @@ "build:sassdoc": "sassdoc lib/stylesheets --config sassdoc-config.yaml", "build:sassdoc:watch": "nodemon -e scss --watch lib/stylesheets -x \"yarn run build:sassdoc\"", "build:watch": "npm-run-all -p build:webpack:watch build:sassdoc:watch", - "preversion": "yarn run build", + "preversion": "NODE_OPTIONS=--openssl-legacy-provider yarn run build", "server": "yarn ws --directory sassdoc -p 4200", "prestart": "yarn build:sassdoc", "start": "yarn server", diff --git a/packages/sage-react/package.json b/packages/sage-react/package.json index f04384c7fe..01f894ba9f 100644 --- a/packages/sage-react/package.json +++ b/packages/sage-react/package.json @@ -37,7 +37,7 @@ "build:watch": "build-storybook -o build && webpack --config webpack/webpack.prod.js --watch", "lint": "yarn run eslint \"lib/**/*.{js,jsx}\"", "storybook": "start-storybook -p 4100 --ci", - "preversion": "yarn install && yarn run build", + "preversion": "NODE_OPTIONS=--openssl-legacy-provider yarn install && yarn run build", "test": "jest --runInBand", "test:coverage:server": "browser-sync start -s \"coverage/lcov-report\" -f \"coverage/lcov-report/**/*.*\" --port 4110", "test:coverage:watch": "jest --coverage=true --watchAll=true", diff --git a/packages/sage-system/package.json b/packages/sage-system/package.json index 390f208181..360ecf13e0 100644 --- a/packages/sage-system/package.json +++ b/packages/sage-system/package.json @@ -34,7 +34,7 @@ "scripts": { "build": "webpack --config webpack/webpack.prod.js", "build:watch": "yarn build --watch", - "preversion": "yarn run build" + "preversion": "NODE_OPTIONS=--openssl-legacy-provider yarn run build" }, "devDependencies": { "@babel/core": "^7.11.6",