Coder Social home page Coder Social logo

link-monorepos-badly's Introduction

link-monorepos-badly

Link packages from one Yarn Workspaces or Bolt monorepo to another ... sorta badly.

Getting started

Install link-monorepos-badly globally

yarn global add link-monorepos-badly

Run an install of the foreign monorepo and the local monorepo

cd /path/to/the/foreign/monorepo
# If the foreign monorepo is using Yarn Workspaces
yarn
# If the foreign monorepo is using Bolt
bolt
cd /path/to/the/local/monorepo
# If the local monorepo is using Yarn Workspaces
yarn
# If the local monorepo is using Bolt
bolt

Link the packages from the foreign monorepo to the local monorepo

cd /path/to/the/local/monorepo
link-monorepos-badly link /path/to/the/foreign/monorepo

When you're ready to unlink packages, you can unlink the packages and reinstall.

cd /path/to/the/local/monorepo
link-monorepos-badly unlink /path/to/the/foreign/monorepo
# If the local monorepo is using Yarn Workspaces
yarn
# If the local monorepo is using Bolt
bolt

Once you've published new versions of the packages from the foreign monorepo

Terms

local monorepo

The monorepo you're linking packages to (this should be at your current working directory)

foreign monorepo

The monorepo you're linking packages from (this is the path you specify to link-monorepos-badly)

Why is this linking monorepos badly?

It's quite likely that there will be duplicated dependencies which will especially cause problems with peerDependencies. We're not attempting to solve this problem well, this is a temporary solution to the problem of linking monorepos until the Node ecosystem is compatible with Yarn PnP and we can use it to link multiple monorepos together well.

link-monorepos-badly's People

Contributors

emmatown avatar

Stargazers

Lucia Quirke avatar Noviny avatar Fred Ghilini avatar Marco de Jongh avatar Simon Vrachliotis avatar Elise Chant avatar

Watchers

James Cloos avatar  avatar

link-monorepos-badly's Issues

Install fails when using node 10

Ran yarn global add link-monorepos-badly and got:

image

I am not quite sure where this version of upath is being installed from - this is updated in later versions of upath.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.