|
28 | 28 | // TS6059 errors here. |
29 | 29 | "baseUrl": ".", |
30 | 30 | "paths": { |
31 | | - // test-kit is a source-only package that consumes stack through |
32 | | - // the `@/` alias; mirror stack-drizzle's mapping so its sources |
33 | | - // typecheck inside this package's program. |
| 31 | + // Resolve every consumed stack subpath to SOURCE, not `dist` |
| 32 | + // (mirrors `packages/test-kit/tsconfig.json`). Without these, |
| 33 | + // `pnpm typecheck` only works after `pnpm build` — and on a |
| 34 | + // fresh/stale checkout the dist d.ts resolves partially, which |
| 35 | + // surfaces as implicit-`any` noise far from the real cause |
| 36 | + // (#684). The matching runtime aliases live in `vitest.shared.ts`. |
| 37 | + "@cipherstash/stack": ["../stack/src/index.ts"], |
| 38 | + "@cipherstash/stack/client": ["../stack/src/client.ts"], |
| 39 | + "@cipherstash/stack/types": ["../stack/src/types-public.ts"], |
| 40 | + "@cipherstash/stack/eql/v3": ["../stack/src/eql/v3/index.ts"], |
| 41 | + "@cipherstash/stack/schema": ["../stack/src/schema/index.ts"], |
| 42 | + "@cipherstash/stack/v3": ["../stack/src/encryption/v3.ts"], |
| 43 | + "@cipherstash/stack/adapter-kit": ["../stack/src/adapter-kit.ts"], |
| 44 | + // Resolving stack to source means we also inherit stack's OWN |
| 45 | + // internal alias (`@/…` inside stack sources) — and test-kit's |
| 46 | + // sources (pulled in by the integration suite) use it too. |
34 | 47 | "@/*": ["../stack/src/*"] |
35 | 48 | } |
36 | 49 | }, |
|
0 commit comments