Files
zeekayandHanzo Dev f7ed11c6c3 fix(remix): map server/* so the bare specifiers resolve
`turbo run build --filter=@hanzo/esign-remix` fails its typecheck with

    error TS2307: Cannot find module 'server/utils/get-loader-session'
    error TS2307: Cannot find module 'server/context'
    error TS2307: Cannot find module 'server/router'

All three files exist — apps/remix/server/context.ts, server/router.ts,
server/utils/get-loader-session.ts. The problem is that they are imported as
NON-RELATIVE specifiers, and a bare specifier has no root to resolve against
unless it is named in `paths` or `baseUrl` is set. Neither was true, so tsc
looked for an npm package called `server`.

Added `"server/*": ["./server/*"]` rather than setting baseUrl. baseUrl would
change resolution for every bare specifier in the project, letting any
top-level directory shadow a package of the same name; this maps exactly the
one prefix that needs it. paths-without-baseUrl already works in this config —
the existing `~/*` entry relies on it.

Verified by resolving each specifier through the tsconfig's own path rules:
all three land on the real files. A full tsc run is not possible in a bare
clone (no node_modules — it stops earlier on missing @types/node), so CI is
what exercises the whole typecheck.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-27 18:10:05 -07:00
..