Skip to content

How to correctly build a yarn plugin? #2872

Answered by paul-soporan
protango asked this question in Q&A
Discussion options

You must be logged in to vote

In our repository:

  • packages/*/bin contains the committed bundles that we want to mark as latest - they are only updated when we make a release and they are currently on 2.x as 3.x is still in RC
  • packages/*/bundles contains the locally generated bundles based on the current branch. They aren't committed and they are on 3.x since they use the current branch.
  • You can't use 3.x plugins in 2.x projects.

I've also tried using it to create a new plugin outside of the Berry repo, but had similar issues where it did not produce a valid output file.

Make sure you use the 3.x versions of the builder to create 3.x plugins and the 2.x versions of the builder to create 2.x plugins. 3.x plugins aren…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@protango
Comment options

@paul-soporan
Comment options

Answer selected by protango
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants