GoodDollar / GoodWeb3-Mono

mono repo with GoodDollar's web3 UI components and SDK
https://gooddollar-storybook.vercel.app
0 stars 1 forks source link

workspaces hoisting limits #109

Closed L03TJ3 closed 10 months ago

L03TJ3 commented 10 months ago

Description

This changes the hoisting limits of the repository to be per package

108

sirpy commented 10 months ago

I still don't understand why do we need it

L03TJ3 commented 10 months ago

@sirpy Your own comment was on the issue discussed: 'sync versions or apply no-hoisting'.

Syncing versions caused the issue (specifically sdk-v2 bump on good-design), and isolated no-hoisting for a single package doesn't exists (anymore). setting the hoisting-limit to workspaces seems the only way.

The new @gooddollar/goodprotocol package is based on last yarn.lock still in the local node_modules of good-design package. once you bump sdk-v2 to latest on good-design, it hoists the protocol package to the root of the mono-repo. This breaks the build for both sdk-v2 and good-design

sirpy commented 10 months ago

at the same conversation i wrote that I synced it already and good-design builds just fine

L03TJ3 commented 10 months ago

@sirpy you haven't. you only synced protocol package + added an ethers dep sdk-v2 is at 0.120 not 0.121

steps to reproduce:

  1. latest master
  2. go to gooddesign and yarn remove sdk-v2 and re-add sdk-v2@latest
  3. build good-design or sdk-v2. both fail
L03TJ3 commented 10 months ago

could we distinct code/lint changes from the deps fixes (and changes caused by them like imports updates) ?

  • the lint fixes you could commit directly without PR
  • keep here just deps fixes & non-lint changes

@johnsmith-gooddollar no we cannot. lint-staged would prevent us to commit