This is an automated email from the ASF dual-hosted git repository.
yamer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new b005b4a2b5f NO-ISSUE: Fix Storybook static web application build
(#2663)
b005b4a2b5f is described below
commit b005b4a2b5fdeae78a27957e76681a0d3f66a89f
Author: Luiz João Motta <[email protected]>
AuthorDate: Thu Oct 17 07:25:11 2024 -0300
NO-ISSUE: Fix Storybook static web application build (#2663)
---
packages/boxed-expression-component/package.json | 2 +-
packages/dmn-editor/package.json | 2 +-
packages/scesim-editor/package.json | 2 +-
packages/storybook-base/src/config/baseConfig.ts | 4 +++-
4 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/packages/boxed-expression-component/package.json
b/packages/boxed-expression-component/package.json
index a39d3184569..c298c340c1b 100644
--- a/packages/boxed-expression-component/package.json
+++ b/packages/boxed-expression-component/package.json
@@ -7,7 +7,7 @@
"scripts": {
"build:dev": "rimraf dist && pnpm copy:css && tsc -p tsconfig.json",
"build:prod": "rimraf dist && pnpm copy:css && pnpm lint && tsc -p
tsconfig.json && pnpm test && pnpm test-e2e",
- "build:storybook": "storybook build -o dist-storybook",
+ "build:storybook": "rimraf dist-storybook && NODE_ENV=development
storybook build -o dist-storybook",
"copy:css": "copyfiles -u 1 \"src/**/*.{sass,scss,css}\" dist/",
"deploy": "gh-pages -d dist-dev",
"lint": "run-script-if --bool \"$(build-env linters.run)\" --then
\"kie-tools--eslint ./src\"",
diff --git a/packages/dmn-editor/package.json b/packages/dmn-editor/package.json
index a7328dac98e..27b6bec36ae 100644
--- a/packages/dmn-editor/package.json
+++ b/packages/dmn-editor/package.json
@@ -19,7 +19,7 @@
"scripts": {
"build:dev": "rimraf dist && pnpm copy:css && tsc -p tsconfig.json",
"build:prod": "rimraf dist && pnpm copy:css && pnpm lint && tsc -p
tsconfig.json && pnpm test-e2e && pnpm test",
- "build:storybook": "storybook build -o dist-storybook",
+ "build:storybook": "rimraf dist-storybook && NODE_ENV=development
storybook build -o dist-storybook",
"copy:css": "copyfiles -u 1 \"src/**/*.{sass,scss,css}\" dist/",
"lint": "run-script-if --bool \"$(build-env linters.run)\" --then
\"kie-tools--eslint ./src\"",
"start": "run-script-os",
diff --git a/packages/scesim-editor/package.json
b/packages/scesim-editor/package.json
index 4f6bae028e6..3d420430f19 100644
--- a/packages/scesim-editor/package.json
+++ b/packages/scesim-editor/package.json
@@ -7,7 +7,7 @@
"scripts": {
"build:dev": "rimraf dist && tsc -p tsconfig.json",
"build:prod": "rimraf dist && pnpm lint && tsc -p tsconfig.json && pnpm
test-e2e",
- "build:storybook": "storybook build -o dist-storybook",
+ "build:storybook": "rimraf dist-storybook && NODE_ENV=development
storybook build -o dist-storybook",
"lint": "run-script-if --bool \"$(build-env linters.run)\" --then
\"kie-tools--eslint ./src\"",
"powershell": "@powershell -NoProfile -ExecutionPolicy Unrestricted
-Command",
"start": "run-script-os",
diff --git a/packages/storybook-base/src/config/baseConfig.ts
b/packages/storybook-base/src/config/baseConfig.ts
index 7af3802d885..384d9fe0f3a 100644
--- a/packages/storybook-base/src/config/baseConfig.ts
+++ b/packages/storybook-base/src/config/baseConfig.ts
@@ -60,7 +60,9 @@ export const baseConfig: (
path.dirname(require.resolve("@storybook/addon-webpack5-compiler-babel/package.json")),
],
webpackFinal: async (config) => {
- return merge(config, common);
+ // Preserve Storybook output configurations
+ const commonConfig = { ...common, output: undefined };
+ return merge(config, commonConfig);
},
};
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]