From 14f5815149edf3df9663e5173d1cca4f39c8daf6 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Wed, 19 Jan 2022 20:05:18 +0100 Subject: [PATCH] chore(storybook): fix server start and warnings Remove the extra NODE_OPTIONS in storybook server start script that generated an error. Remove cross-env devDependency which is then not used anymore. Fix storybook deprecation warning (static dirs) --- package.json | 1 - packages/html/.storybook/main.js | 5 +++-- packages/html/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9924135a1..74df2ccc0 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "@lerna/filter-options": "^4.0.0", "babel-loader": "^8.2.3", "better-docs": "^2.3.2", - "cross-env": "^7.0.3", "css-loader": "^6.5.1", "file-loader": "^6.2.0", "jsdoc": "^3.6.7", diff --git a/packages/html/.storybook/main.js b/packages/html/.storybook/main.js index b802a7cb8..6a5c39aa6 100644 --- a/packages/html/.storybook/main.js +++ b/packages/html/.storybook/main.js @@ -6,5 +6,6 @@ module.exports = { "addons": [ "@storybook/addon-links", "@storybook/addon-essentials" - ] -} \ No newline at end of file + ], + staticDirs: ['../public'], +} diff --git a/packages/html/package.json b/packages/html/package.json index 34b178c2c..2a2a2c38f 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 8901 -s ./public" + "dev": "start-storybook -p 8901" }, "author": "", "license": "ISC",