File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1616 "start" : " concurrently npm:start:*" ,
1717 "start:storybook" : " npm run start:storybook -w @primer/react" ,
1818 "build:storybook" : " script/build-storybook" ,
19+ "build:storybook:preview" : " script/build-storybook preview" ,
20+ "build:storybook:preview_with_reports" : " script/build-storybook preview_with_reports" ,
1921 "build:docs" : " NODE_OPTIONS=--openssl-legacy-provider script/build-docs" ,
2022 "build:docs:preview" : " NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview" ,
2123 "build:docs:preview_with_reports" : " NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview_with_reports" ,
Original file line number Diff line number Diff line change 33
44if [ " $1 " == " preview" ]; then
55 export DEPLOY_ENV=" preview"
6- npm run build:storybook preview
6+ npm run build:storybook: preview
77elif [ " $1 " == " preview_with_reports" ]; then
88 export DEPLOY_ENV=" preview"
9- npm run build:storybook preview_with_reports
9+ npm run build:storybook: preview_with_reports
1010else
1111 export DEPLOY_ENV=" production"
1212 npm run build:storybook
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ npx storybook build -o ../../docs/public/storybook
1616if [ " $1 " == " preview_with_reports" ]; then
1717 # Move index_with_reports.html to the right location
1818 cp .storybook/index_with_reports.html ../../docs/public/index.html
19- else
19+ elif [ " $1 " == " preview " ] ; then
2020 # Move index.html to the right location
2121 cp .storybook/index.html ../../docs/public/index.html
2222fi
You can’t perform that action at this time.
0 commit comments