Skip to content

🔨 Large internal refactor / file management#171

Merged
danieldelcore merged 2 commits into
masterfrom
refactor-main
Mar 4, 2021
Merged

🔨 Large internal refactor / file management#171
danieldelcore merged 2 commits into
masterfrom
refactor-main

Conversation

@danieldelcore

@danieldelcore danieldelcore commented Mar 4, 2021

Copy link
Copy Markdown
Collaborator

I've been finding the source code hard to understand and a little bit confusing lately. This pr tries to separate the index.js file into separate, more focused files to help reduce the noise.

  • index.js = entry points, API of the package
  • export-manager.js = responsible for finding and handling exports
  • converter.js = contains all of the converter logic
  • kinds.js = flow typings for supported "kinds"

image

@changeset-bot

changeset-bot Bot commented Mar 4, 2021

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0c096da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
extract-react-types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pgmanutd

pgmanutd commented Mar 4, 2021

Copy link
Copy Markdown
Contributor

@danieldelcore: Nice one. When I went through the code few months back (for fixing a bug), I was totally lost. Some files are crossing 1000 lines. If possible we can split it into multiple files based on their responsibilities.

@danieldelcore danieldelcore changed the title 🔨 Large internal refactor / file management [WIP] 🔨 Large internal refactor / file management Mar 4, 2021

@itsdouges itsdouges left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

converter is huge.

@danieldelcore

Copy link
Copy Markdown
Collaborator Author

It's a BEAST

@danieldelcore danieldelcore merged commit ff72fd8 into master Mar 4, 2021
@github-actions github-actions Bot mentioned this pull request Mar 4, 2021
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.

3 participants