Member Junction
    Preparing search index...
    • Load a JSON config file and return it as a partial install config.

      Accepts both the canonical PascalCase keys (InstallConfig) and a curated set of legacy camelCase aliases for backward compatibility with install.config.json files written against pre-5.34 docs.

      Throws when the file is present but no recognized keys are found — this catches the "I copied the old template and edited values but the installer silently ignored everything" failure mode that was previously a silent default-fallthrough.

      Parameters

      • filePath: string

        Absolute or relative path to the JSON config file.

      Returns Promise<Partial<InstallConfig>>

      A partial config containing the fields recognized from the file.

      If the file cannot be read, contains invalid JSON, isn't an object, or contains keys but none are recognized.

      const fileConfig = await loadConfigFile('./install.config.json');