this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: rename config to .remanso.json with atmosphere wrapper

Config file renamed from remanso.json to .remanso.json (dotfile) and
restructured so all existing fields live under an atmosphere key.

+17 -6
+2 -2
packages/remanso-cli/src/commands/init.ts
··· 29 29 import type { RemansoConfig } from "../lib/config"; 30 30 import { WORKFLOW_YAML } from "./github"; 31 31 32 - const CONFIG_FILENAME = "remanso.json"; 32 + const CONFIG_FILENAME = ".remanso.json"; 33 33 const STATE_FILENAME = ".remanso-state.json"; 34 34 const WORKFLOW_PATH = ".github/workflows/remanso.yml"; 35 35 ··· 344 344 config.pdsUrl = pdsUrl; 345 345 } 346 346 347 - const configContent = JSON.stringify(config, null, 2); 347 + const configContent = JSON.stringify({ atmosphere: config }, null, 2); 348 348 await fs.writeFile(CONFIG_FILENAME, configContent); 349 349 log.success(`Created ${CONFIG_FILENAME}`); 350 350
+1 -1
packages/remanso-cli/src/commands/publish.ts
··· 110 110 // Load config 111 111 const configPath = await findConfig(); 112 112 if (!configPath) { 113 - log.error("No remanso.json found. Run 'remanso init' first."); 113 + log.error("No .remanso.json found. Run 'remanso init' first."); 114 114 process.exit(1); 115 115 } 116 116
+1 -1
packages/remanso-cli/src/commands/sync.ts
··· 137 137 // Load config 138 138 const configPath = await findConfig(); 139 139 if (!configPath) { 140 - log.error("No remanso.json found. Run 'remanso init' first."); 140 + log.error("No .remanso.json found. Run 'remanso init' first."); 141 141 process.exit(1); 142 142 } 143 143
+13 -2
packages/remanso-cli/src/lib/config.ts
··· 11 11 imagesDir?: string; 12 12 } 13 13 14 - const CONFIG_FILENAME = "remanso.json"; 14 + interface RemansoConfigFile { 15 + atmosphere: RemansoConfig; 16 + } 17 + 18 + const CONFIG_FILENAME = ".remanso.json"; 15 19 const STATE_FILENAME = ".remanso-state.json"; 16 20 17 21 export const DEFAULT_IGNORE = ["**/node_modules/**", ".*/**", "_*/**"]; ··· 58 62 59 63 try { 60 64 const content = await fs.readFile(resolvedPath, "utf-8"); 61 - const config = JSON.parse(content) as RemansoConfig; 65 + const parsed = JSON.parse(content) as RemansoConfigFile; 66 + 67 + if (!parsed.atmosphere) 68 + throw new Error( 69 + `Invalid config: missing "atmosphere" key in ${resolvedPath}`, 70 + ); 71 + 72 + const config = parsed.atmosphere; 62 73 63 74 if (!config.contentDir) throw new Error("contentDir is required in config"); 64 75 if (!config.publicationUri)