forge icon indicating copy to clipboard operation
forge copied to clipboard

refactor: replace bolt with a better monorepo manager

Open malept opened this issue 4 years ago • 4 comments

  • [x] I have read the contribution documentation for this project.
  • [x] I agree to follow the code of conduct that this project follows, as appropriate.
  • [ ] The changes are appropriately documented (if applicable).
  • [x] The changes have sufficient test coverage (if applicable).
  • [x] The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

Bolt is getting too in the way (namely, the recent dependabot + GitHub Actions changes is preventing dependabolt from working). Switching to lerna since it's a more popular monorepo manager (and also supported by Dependabot). We're also forced to use an older version of bolt on Windows.

TODO

  • [ ] FIx all of the "internal" dependencies
  • [ ] FIgure out if publishing needs to change
    • Finally get semantic-release working?
  • [ ] Update any docs mentioning bolt

malept avatar Jun 07 '21 16:06 malept

Now that npm v7 supports workspaces, both yarn and npm support workspaces and hoisting node_modules so is Lerna even required any more?

The only missing ingredient seems to be running scripts in dependency order. I've seen a few projects migrate to lage because it's a bit more clever than a sequential runner.

timfish avatar Jun 10 '21 12:06 timfish

@timfish at this point I'm mainly interested in lerna publish. There's currently some custom scripts for publishing and I'd like to avoid that.

malept avatar Jun 10 '21 14:06 malept

On the other hand, @microsoft/rush seems like an interesting alternative.

malept avatar Jun 10 '21 14:06 malept

On the other hand, @microsoft/rush seems like an interesting alternative.

Hmmm. Based on the docs it sounds like it's most compatible with pnpm and also doesn't really work with npm/yarn workspaces (it kind of does its own thing?). Probably sticking with Lerna for now.

malept avatar Jun 10 '21 14:06 malept

superseded by #2971

erickzhao avatar Nov 08 '22 19:11 erickzhao