2

When using yarn workspaces is it possible to have nested package.json files to resolve dependancies for a subset of packages? Avoiding repetition?

where cra are create-react-apps and pkg are packages that these sites consume. e.g.

| /
| - package.json
|---- /sites
|-------- /cra-1
|         - package.json
|-------- /cra-2
|         - package.json
|---- /packages
|     - package.json   // <<---- Extra level here
|-------- /pkg-1
|         - package.json
|-------- /pkg-1
|         - package.json
|-------- /pkg-2
|         - package.json

this would allow us to share common dependancies for our packages... keep them all in sync and up-to-date

tk421
  • 5,775
  • 6
  • 23
  • 34
AndrewMcLagan
  • 13,459
  • 23
  • 91
  • 158

0 Answers0