fix(core): target project locator should ignore nested node modules

This commit is contained in:
vsavkin 2021-04-07 12:37:14 -04:00 committed by Victor Savkin
parent 38c111ba06
commit aa846b8c17

View File

@ -88,6 +88,11 @@ export class TargetProjectLocator {
this.absTsConfigPath
);
// TODO: vsavkin temporary workaround. Remove it once we reworking handling of npm packages.
if (resolvedModule && resolvedModule.indexOf('/node_modules/') !== -1) {
return null;
}
this.typescriptResolutionCache.set(normalizedImportExpr, resolvedModule);
if (resolvedModule) {
const resolvedProject = this.findProjectOfResolvedModule(resolvedModule);