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
Follow-up to #504 / #506, which resolves imports of workspace packages (names from package.json). Imports through tsconfig compilerOptions.paths aliases are still unresolved:
On cal.com after #506: @lib.* 91 imports, @components.* 90, @server.* 23.
Why it is its own change
Scope is per tsconfig.paths apply to the files a tsconfig covers, and a monorepo has one per app, with different aliases. The same @lib/* can mean different directories in two apps, so the map is keyed by the importing file, not global like fix(resolver): resolve TypeScript imports of workspace packages #506's.
extends chains and baseUrl. Aliases are inherited and resolved relative to baseUrl of whichever config in the chain set it.
Several targets per alias."@lib/*": ["a/*", "b/*"] is tried in order.
The rule from #506 carries over: rewrite only onto a node that exists, otherwise leave the edge visibly unresolved, and rebuild on an incremental run when any tsconfig in scope changes.
Follow-up to #504 / #506, which resolves imports of workspace packages (names from
package.json). Imports through tsconfigcompilerOptions.pathsaliases are still unresolved:On cal.com after #506:
@lib.*91 imports,@components.*90,@server.*23.Why it is its own change
pathsapply to the files a tsconfig covers, and a monorepo has one per app, with different aliases. The same@lib/*can mean different directories in two apps, so the map is keyed by the importing file, not global like fix(resolver): resolve TypeScript imports of workspace packages #506's.extendschains andbaseUrl. Aliases are inherited and resolved relative tobaseUrlof whichever config in the chain set it."@lib/*": ["a/*", "b/*"]is tried in order.The rule from #506 carries over: rewrite only onto a node that exists, otherwise leave the edge visibly unresolved, and rebuild on an incremental run when any tsconfig in scope changes.