Const- "errors" maps to "../errors/index.js" for error type definitions
- "generatedAccounts" maps to "../accounts/index.js" for account structures
- "hooked" maps to "../../hooked/index.js" for hook implementations
@codama/renderers-js >= 2.4.0 appends import extensions itself
via its importExtension option, which this renderer now sets to "ts" so
the generated sources run under Node's type stripping. The map is no longer
applied to the render and is kept only for consumers who pass it to
getRenderMapVisitor directly. It will be removed in the next major.
Dependency map for ESM module resolution in Codama-generated code.
This map defines how internal module dependencies should be resolved when generating ESM-compatible TypeScript/JavaScript code. Each key represents a dependency identifier used in the Codama code generation process, and each value is the relative path to the actual module file in the generated output.
The paths are relative to the importing module and include the .js extension for proper ESM resolution, even when the source files are TypeScript.