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

CLI: Fix variable collisions in storiesof-to-csf #8106

Merged
merged 4 commits into from Sep 23, 2019
Merged

Conversation

Hypnosphi
Copy link
Member

@Hypnosphi Hypnosphi commented Sep 17, 2019

What I did

– Apply storyNameFromKey before deciding whether to add an explicit name #8101
– Prepend _ if story name starts with a digit
– Check all the variable names (not only exports) when detecting collision. Preserve original name in case of collision

@Hypnosphi Hypnosphi added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch csf labels Sep 17, 2019
@vercel
Copy link

vercel bot commented Sep 17, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-fix-storiesof-to-csf.storybook.now.sh

@github-actions
Copy link
Contributor

Automention: Hey @Keraito, you've been tagged! Can you give a hand here?

Preserve original name in case of collision
@vercel vercel bot temporarily deployed to staging September 17, 2019 21:53 Inactive
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great @Hypnosphi. Thanks for the fix!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli csf patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants