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

Fix Typescript Arrow Consts needing using the filename #209

Merged
merged 4 commits into from
Oct 30, 2020

Conversation

jrwpatterson
Copy link
Contributor

This PR should fix the fact that the latest release of Arrow names needs the filenames to be in ProperCase because the arrow-function implementation is a child of the actual component. This means that in getComponentName it was falling back to the filename and dumping components such as import simple-select from '../src/components/simple-select.tsx in the components.js file in the .uxpin-merge

I don't think it will affect any other way of importing when using typescript.

@itsderek23
Copy link
Contributor

Thanks @jrwpatterson ! We'll review and update.

Copy link
Collaborator

@vados-xenon vados-xenon left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this PR! A few comments but nothing major.

Co-authored-by: Victor Adossi <61000371+vados-xenon@users.noreply.github.com>
@jrwpatterson
Copy link
Contributor Author

@vados-xenon I have accepted your comments thank you

Copy link
Contributor

@matthewchigira matthewchigira left a comment

Choose a reason for hiding this comment

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

Thank you very much for your PR @jrwpatterson

Looks good to me 👍

@matthewchigira matthewchigira merged commit 9e1a941 into UXPin:master Oct 30, 2020
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.

4 participants