Can I prevent global typings from being included in installed dependencies?
I recently installed a local dependency, which led to the node_modules folder of that dependency being copied over. Within this node_modules folder are @types typings that clash with those already installed for the main project.
For example,
project-path/node_modules/local-dependency/node_modules/@types/react
conflicts with project-path/node_modules/@types/react
.
Is there a way to instruct the TypeScript compiler to disregard the typings within that local dependency?