fix(core): target project locator should ignore nested node modules
This commit is contained in:
parent
38c111ba06
commit
aa846b8c17
@ -88,6 +88,11 @@ export class TargetProjectLocator {
|
|||||||
this.absTsConfigPath
|
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);
|
this.typescriptResolutionCache.set(normalizedImportExpr, resolvedModule);
|
||||||
if (resolvedModule) {
|
if (resolvedModule) {
|
||||||
const resolvedProject = this.findProjectOfResolvedModule(resolvedModule);
|
const resolvedProject = this.findProjectOfResolvedModule(resolvedModule);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user