Peer Dependencies In A Monorepo
问题 When packages in a monorepo have peer dependencies, how should these dependencies be made available to them during development? For example a package at /packages/namespace/alpha/ might have a devDependency of styled-components in its package.json . Possible options: Declare the same dependencies as dev dependencies as well (unnecessary duplication and maintenance cost). Install the packages in the monorepo's route package.json (potential issues with module resolution when using yarn link . I