yarn workspaces seems li…

less than 1 minute read

yarn workspaces seems like a natural fit for nx, are there known issues using it?


Hey , here is an interesting comment about why it’s not being used/advocated: https://github.com/nrwl/nx/issues/2177#issuecomment-567541812

This can be achieved though with the resolutions field in package.json, if you have it in the root, yarn workspaces will respect that

so if a package needs to always have the same version, like react for example, then you can just add it there and it will resolve all requests to install react with that same version – this will also ensures it hoists it up to the root since all share the same version anyway