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.
Type Declaration
errors: string
generated: string
generatedAccounts: string
generatedErrors: string
generatedInstructions: string
generatedPdas: string
generatedPrograms: string
generatedTypes: string
hooked: string
shared: string
types: string
Example
- "errors"mapsto"../errors/index.js"forerrortypedefinitions - "generatedAccounts" maps to "../accounts/index.js" for account structures - "hooked" maps to "../../hooked/index.js" for hook implementations
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.