Skip to content

Commit

Permalink
NO-ISSUE: Fix Storybook static web application build (#2663)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmotta authored Oct 17, 2024
1 parent 8dc7fa7 commit b005b4a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/boxed-expression-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
Expand Down
2 changes: 1 addition & 1 deletion packages/dmn-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/scesim-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion packages/storybook-base/src/config/baseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
};
};

0 comments on commit b005b4a

Please sign in to comment.