Circular dependencies are a huge issue when working with third party tooling (graphing dependencies, integrating into other build systems etc).
I think the correct solution here would be to put @types/react in the bundleDependencies (https://docs.npmjs.com/files/package.json#bundleddependencies) attribute in package.json to make the circular dependency invisible to consumers of this package.
Circular dependencies are a huge issue when working with third party tooling (graphing dependencies, integrating into other build systems etc).
I think the correct solution here would be to put
@types/react
in thebundleDependencies
(https://docs.npmjs.com/files/package.json#bundleddependencies) attribute in package.json to make the circular dependency invisible to consumers of this package.