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: move vendor back into src #57

Merged
merged 3 commits into from
Oct 14, 2020
Merged

fix: move vendor back into src #57

merged 3 commits into from
Oct 14, 2020

Conversation

sndrs
Copy link
Member

@sndrs sndrs commented Oct 14, 2020

What does this change?

  • moves vendor back under src, with a __ prefix to keep it separate from our own code
  • converts vendor files to JS, since TS isn't catching anything in there

Why?

multiple rootDirs in the tsconfig meant everything was published under the directory it lives in (src, vendor etc). this broke importing.

@ioanna0 and i mulled this over and decided we could either do this or change the main/module paths. that felt wrong, since it's not src at that point, it's our compiled artefact.

also, vendor code is source code of this package, just not ours.

this attempts to mark it as such while keeping a clean published artefact

we should probably add some validation for the built package before publishing it

@sndrs sndrs requested a review from ioanna0 October 14, 2020 11:38
@sndrs sndrs requested a review from a team as a code owner October 14, 2020 11:38
Copy link
Contributor

@ioanna0 ioanna0 left a comment

Choose a reason for hiding this comment

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

👍

@sndrs sndrs merged commit f27e108 into main Oct 14, 2020
@sndrs sndrs deleted the build-fix branch October 14, 2020 11:41
sndrs pushed a commit that referenced this pull request Oct 14, 2020
## [0.8.1](v0.8.0...v0.8.1) (2020-10-14)

### Bug Fixes

* move vendor back into src ([#57](#57)) ([f27e108](f27e108))
@sndrs
Copy link
Member Author

sndrs commented Oct 14, 2020

🎉 This PR is included in version 0.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sndrs sndrs added the released label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants