LoadConfigFromContentOptions
Defined in: cli/datapad/src/load-config-from-content/load-config-from-content.type.ts:2
Options for loading a config from raw content rather than a file already on disk.
Properties
Section titled “Properties”content
Section titled “content”content:
string
Defined in: cli/datapad/src/load-config-from-content/load-config-from-content.type.ts:13
Raw file content — not necessarily sourced from a local file at all (a network fetch, a git blob, …).
dir:
string
Defined in: cli/datapad/src/load-config-from-content/load-config-from-content.type.ts:11
Directory to write <name>.config.<extension> into before loading —
this is what upward node_modules resolution sees, so a config that
does import { defineConfig } from "@theholocron/cli" only resolves
if dir sits under a tree where that package is a real dependency.
Callers own creating and cleaning up dir — this function only
writes the one file into it.
extension
Section titled “extension”extension:
string
Defined in: cli/datapad/src/load-config-from-content/load-config-from-content.type.ts:17
Which of DEFAULT_EXTENSIONS content is — determines how it’s interpreted (ts/js/mjs/cjs parsed as a module, json as JSON.parse).
name:
string
Defined in: cli/datapad/src/load-config-from-content/load-config-from-content.type.ts:15
Base name — "holocron" writes holocron.config.<extension>.