Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move storybook dependencies from dev to normal dependencies #1884

Merged
merged 2 commits into from Mar 10, 2022

Conversation

eliobricenov
Copy link
Contributor

@eliobricenov eliobricenov commented Mar 10, 2022

the reason why the dev builds (and staging and prod if they're executed) is because when NODE_ENV is production the devDependencies are not installed. This is causing an error in the storybook build.

#deploy_dev.yaml
env:
    NODE_ENV: production

If we set the --production=false flag to yarn, it will install the dev dependencies but keep the production build behavior, see: yarnpkg/yarn#2739 (comment). However, the recommended solution from the react mantainer team is to add the storybooks dependencies to the normal dependencies storybookjs/storybook#12625 (comment).

@github-actions
Copy link

github-actions bot commented Mar 10, 2022

Coverage report

Total coverage

Status Category Percentage Covered / Total
🟡 Statements 49.27% 2495/5064
🔴 Branches 38.18% 911/2386
🟡 Functions 46.13% 560/1214
🟢 Lines 63.87% 13410/20996

Status of coverage: 🟢 - ok, 🟡 - slightly more than threshold, 🔴 - under the threshold

Report generated by 🧪jest coverage report action from 169147b

@eliobricenov eliobricenov changed the title chore: install dev dependencies in prod build chore: move storybook dependencies from dev to normal dependencies Mar 10, 2022
@okjintao okjintao merged commit 6950e90 into development Mar 10, 2022
@okjintao okjintao deleted the story-book-fix-try branch March 10, 2022 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants