Skip to content

pedronauck/yarn-workspaces-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarn workspaces example

This is a simple example of a monorepo project that use new Yarn Workspaces feature.

Run

To check workspaces working just run

$ yarn install
$ cd packages/b
$ yarn start

First, Yarn will hoist dependencies in the project root, after that you can link your packages among then and running without publish. You'll see in the package.json of b package that depends of a package and works great without any ./node_modules folder inside it.

Workspaces are a great alternative for some monorepo tools and in the near future can be a better solution!

Cheers 🍻

About

Sample monorepo project using new Yarn feature called Workspaces

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published