When using Yarn workspaces, can I install every devDependency in the root workspace? Or should I keep them in each separate workspace?
For example:
packages
package1
package.json
package2
package.json
package3
package.json
package.json
And here are the needed devDependencies for each package.
package1 => external-package-A
package2 => external-package-A
package3 => external-package-A + external-package-B
Where should a install the external-package-A and external-package-B ?
Should a install external-package-A in the root workspace, since it's used by all of my packages?
Will there be any problem if I also install external-package-B in my root workspace?
Or should I install them in each of the packages? What I mean is they'd be listed in each respective package.json file for each package, instead of being listed in the root one.