@aexol/axolotl-config
v2.2.1
Published
Typed project configuration used by Axolotl CLI and examples. Backed by `config-maker`.
Keywords
Readme
@aexol/axolotl-config
Typed project configuration used by Axolotl CLI and examples. Backed by config-maker.
Options (ProjectOptions)
schema: string– path to GraphQL schemamodels: string– path to generated modelsfederation?: { schema: string; models: string; }[]– optional federation partszeus?: { schema?: string; generationPath: string; }[]– optional Zeus codegenprompt_info?,frontend_prompt_info?,graphql_prompt_info?,code_prompt_info?– extra text used by AI toolsagent_model?– model name for AI helpers
See packages/config/index.ts:1 for the exported config and types.
Environment mapping
The config maker binds env vars for quick setup:
SCHEMA_PATH->schemaMODELS_PATH->models
Usage
import { config } from '@aexol/axolotl-config';
const cfg = config.get();
console.log(cfg.schema, cfg.models);