@typed-sql/config
v2.1.0
Published
Shared typed-sql config discovery and TypeScript config loading.
Readme
@typed-sql/config
Stable, grammar-neutral configuration discovery and executable TypeScript config loading for typed-sql.
pnpm add @typed-sql/configimport { discoverConfig, fromConfig, loadConfig } from "@typed-sql/config";
const file = await discoverConfig(process.cwd());
const loaded = await loadConfig({ file });
const schemaFile = fromConfig(loaded.directory, loaded.config.schema.file);Discovery walks upward for typed-sql.config.ts, .mts, .mjs, or .js. Loaded configs must
default-export a valid dialect contract. Config modules are executable application build code; do
not load them from untrusted repositories outside an appropriate sandbox.
Read the configuration guide.
MIT © typed-sql contributors
