nomad-xyz / nomad-monorepo

Contracts, off-chain agents, and libraries for Nomad
https://nomad.xyz
77 stars 16 forks source link

Yarn Workspaces Reorganization #12

Open Imti opened 2 years ago

Imti commented 2 years ago

Wanted a single place where we can leave links / thoughts on how we should do this.

Problem: We've had frustrations with the current monorepo structure and we temporarily moved from manually npm linking packages (messy) to locally referencing packages in the package.json (ex: nomad-sdk: file:..) to make local dev experience easier.

Potential Solutions:

  1. Lerna - good example is the Agoric SDK (thx for this potential solution Barbara!)
  2. Yarn 2 workspaces - good example is Connext's nxtp monorepo

Feel free to comment on any other monorepo problems we've been experiencing and other potential solutions.

ErinHales commented 2 years ago

@Imti Anything remaining here?