diff --git a/package-lock.json b/package-lock.json index 859506254..b114baca7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@babel/preset-typescript": "^7.16.0", "@lerna/filter-options": "^4.0.0", "babel-loader": "^8.2.3", + "cross-env": "^7.0.3", "css-loader": "^6.5.1", "file-loader": "^6.2.0", "lerna": "^4.0.0", @@ -4923,6 +4924,24 @@ "node": ">=10" } }, + "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", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -14917,6 +14936,15 @@ "yaml": "^1.10.0" } }, + "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", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/package.json b/package.json index 9fd87282a..d3c831a71 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@babel/preset-typescript": "^7.16.0", "@lerna/filter-options": "^4.0.0", "babel-loader": "^8.2.3", + "cross-env": "^7.0.3", "css-loader": "^6.5.1", "file-loader": "^6.2.0", "lerna": "^4.0.0", diff --git a/packages/html/package.json b/packages/html/package.json index 9b6434155..34b178c2c 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "dev": "start-storybook -p 8901 -s ./public" + "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 8901 -s ./public" }, "author": "", "license": "ISC", diff --git a/packages/react/package.json b/packages/react/package.json index 363100f94..db86731bd 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -4,7 +4,7 @@ "description": "", "main": "dist/maxgraph-react.js", "scripts": { - "dev": "start-storybook -p 8902" + "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 8902" }, "author": "", "license": "ISC",