2

I have a package A that exports some types and functions and a package B that use package A as a dependency and export also other types and functions.

I import package A and package B in a package C as dependencies. When I use a type from package A, I use the new nestjs swagger plugin for api documentation, but the types of package A are imported from ./packageB/node_modules/packageA and not directly from package A.

Does anyone know why ?

PS: I am using lerna and packages A, B and C are in the same repository. It looks like the preserveSymlinks option in tsconfig.json has some effect but when I turn it off, the import package is the relative path ('../../../../../packageA' and not 'packageA')

4

0 回答 0