Skip to content

Commit f830b51

Browse files
authored
revert: storybook commands in package.json reverted (#559)
1 parent 3bc6a3e commit f830b51

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.storybook/main.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import path from 'path';
22

33
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
44
const config = {
5-
stories:
6-
process.env.STORYBOOK === 'constellation'
7-
? ['../src/components/custom-constellation/**/*.stories.@(js|jsx|ts|tsx)']
8-
: ['../src/components/custom-sdk/**/*.stories.@(js|jsx|ts|tsx)'],
5+
stories: process.env.STORYBOOK_CONSTELLATION
6+
? ['../src/components/custom-constellation/**/*.stories.@(js|jsx|ts|tsx)']
7+
: ['../src/components/custom-sdk/**/*.stories.@(js|jsx|ts|tsx)'],
98

109
typescript: {
1110
reactDocgen: 'react-docgen-typescript'

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { theme } from '../src/theme';
77

88
import { decorator } from '../__mocks__/react_pconnect';
99

10-
const isConstellation = process.env.STORYBOOK === 'constellation';
10+
const isConstellation = process.env.STORYBOOK_CONSTELLATION;
1111

1212
if (!isConstellation) {
1313
getSdkComponentMap();

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"publishAll": "dx-component-builder-sdk publishAll",
3737
"rename": "dx-component-builder-sdk rename",
3838
"scanAndFix": "dx-component-builder-sdk scanAndFix",
39-
"storybookSDK": "STORYBOOK=sdk storybook dev --port 6040",
40-
"storybookConstellation": "STORYBOOK=constellation storybook dev --port 6050",
39+
"storybookSDK": "storybook dev --port 6040",
40+
"storybookConstellation": "STORYBOOK_CONSTELLATION=true storybook dev --port 6050",
4141
"_comment_SDK_public_SDK_test_commands": "The following are public commands used for testing the SDK",
4242
"test:functional": "jest --runInBand tests/functional/dxcb --detectOpenHandles --coverage",
4343
"test": "node ./scripts/playwright-message.js && playwright test --project=chromium MediaCo/portal MediaCo/embedded",

0 commit comments

Comments
 (0)