Commit ec1b83f
committed
chore(Common): Update TypeScript config for declaration emission
Modified the `tsconfig.json` in the `Common` element to optimize TypeScript declaration file generation for shared DTOs and interfaces. Key changes:
1. Added `composite: true` to enable project references, allowing other Land components (`Cocoon`, `Wind`) to build against `Common`'s type definitions
2. Enabled `declarationMap: true` to provide source mapping for generated `.d.ts` files, improving developer experience when navigating shared types
3. Set `emitDeclarationOnly: true` since `Common` contains only type definitions (abstract traits and DTOs) without runtime JS code
4. Specified `rootDir: '.'` to ensure declaration files maintain correct relative paths
This aligns with Land's architecture where `Common` serves as the central type library defining gRPC contracts and effect interfaces used across Rust (`Mountain`) and TypeScript (`Cocoon`/`Wind`) components. The changes ensure type safety during cross-component development while eliminating unnecessary JS output for this pure-type crate.1 parent 7a11cf5 commit ec1b83f
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
0 commit comments