Skip to content

Guidance on current usage with Lerna and Yarn Workspaces? #275

@jannisg

Description

@jannisg

I am currently setting up a fresh monorepo structure using Lerna and TSDX to build out a component library.

I have read and followed the various links related to #122 but wanted to check if there is anything to consider when using TSDX inside a lerna monorepo before some kind of official monorepo template (might) land.

My current thinking is to:

  1. Setup the monorepo via lerna as normal
  2. Setup the yarn workspaces integration with lerna
  3. Add tsdx as a devDependency at the root level
  4. Run npx tsdx create mylib-package-a for each package inside the packages/* folder
  5. Add npm scripts at the root level that use lerna run [flags] to either start, watch, test or build each individual package folder as one command.

Is that roughly the right approach for using TSDX inside a monorepo structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: supportAsking for support with something or a specific use casescope: docsDocumentation could be improved. Or changes that only affect docsscope: integrationRelated to an integration, not necessarily to core (but could influence core)topic: monorepoRelated to Lerna monorepos

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions