From 862a7983714a284093420bb1ad6a2771f53e1a84 Mon Sep 17 00:00:00 2001 From: Martin Stievenart Date: Fri, 15 Mar 2024 11:41:43 +0100 Subject: [PATCH] fix: use cross-end for storybook build --- package-lock.json | 28 ++++++++++++++++++++++++++++ package.json | 5 +++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b112bcc7..61dc10a20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,6 +47,7 @@ "@typescript-eslint/parser": "4.6.1", "babel-loader": "8.1.0", "bootstrap": "4.3.1", + "cross-env": "7.0.3", "css-loader": "5.0.1", "eslint": "7.12.1", "eslint-config-airbnb-typescript": "12.0.0", @@ -15282,6 +15283,24 @@ "dev": true, "license": "MIT" }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "dev": true, @@ -46397,6 +46416,15 @@ "version": "1.1.1", "dev": true }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.1" + } + }, "cross-spawn": { "version": "7.0.3", "dev": true, diff --git a/package.json b/package.json index 8e300c142..defb582b9 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "build": "lerna run build && npm run style", "postversion": "rimraf package-lock.json && npm i --force --ignore-scripts && git add package-lock.json && git commit --amend --no-edit", "style": "node ./scripts/style.js", - "storybook": "set NODE_OPTIONS=--openssl-legacy-provider && start-storybook -p 9009 -s storybook-public", - "storybook:build": "set NODE_OPTIONS=--openssl-legacy-provider && build-storybook -s storybook-public -c .storybook -o storybook-static && node ./scripts/inject-version.js", + "storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 9009 -s storybook-public", + "storybook:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -s storybook-public -c .storybook -o storybook-static && node ./scripts/inject-version.js", "test": "jest", "cover": "jest --no-cache --config ./jest.config.ts --coverage", "check": "npm run check:formatting && npm run check:quality", @@ -61,6 +61,7 @@ "@typescript-eslint/parser": "4.6.1", "babel-loader": "8.1.0", "bootstrap": "4.3.1", + "cross-env": "7.0.3", "css-loader": "5.0.1", "eslint": "7.12.1", "eslint-config-airbnb-typescript": "12.0.0",