You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How so? If you have a more elaborated (TM) file layout such as:
components/services/* having modules like @scope/service1
shared/runtime/*... having modules like `@scope/runtime1
models/* ... having modules like @scope/model1
You would need to add them (path mappings) explicitly, because a generic match like the one you propose only works, if all modules are having the same folder depth/layout.
This hinders scalability and it in general a path mapping does not allow to refactor the file layout, without modifying the path mapping.
I think, this is the wrong approach; lerna bootstrap is explicitly abstracting the file layout of your modules away by sym-linking them correctly. Thus enabling "preserveSymlinks": true in each individual module's tsconfig.json is to me the more flexible (and hence better) solution.
However I like your point of view, why you settled with the path mapping option. Care to elaborate?
The text was updated successfully, but these errors were encountered:
i think, this may be a relic from the typescript 2.x times. TypeScript 3.x introduced the project references, which may be more appropriate in such scenarios..
[...]
How so? If you have a more elaborated (TM) file layout such as:
components/services/*
having modules like@scope/service1
shared/runtime/*
... having modules like `@scope/runtime1models/*
... having modules like@scope/model1
You would need to add them (path mappings) explicitly, because a generic match like the one you propose only works, if all modules are having the same folder depth/layout.
This hinders scalability and it in general a path mapping does not allow to refactor the file layout, without modifying the path mapping.
I think, this is the wrong approach;
lerna bootstrap
is explicitly abstracting the file layout of your modules away by sym-linking them correctly. Thus enabling"preserveSymlinks": true
in each individual module'stsconfig.json
is to me the more flexible (and hence better) solution.However I like your point of view, why you settled with the path mapping option. Care to elaborate?
The text was updated successfully, but these errors were encountered: