@mettlecast/domain-cli 0.2.25 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,7 +134,7 @@ export async function runBuildCatalog(tibDir) {
134
134
  const mcDir = join(process.cwd(), '.mc');
135
135
  await mkdir(mcDir, { recursive: true });
136
136
  const outPath = join(mcDir, 'domain-registry.json');
137
- await writeFile(outPath, JSON.stringify(catalog, null, 2), 'utf8');
137
+ await writeFile(outPath, JSON.stringify(catalog), 'utf8');
138
138
  cliLogger.info({ outPath, domains: catalog.domains.length, apis: catalog.apis.length, actions: catalog.actions.length, events: catalog.events.length, jobs: catalog.jobs.length, schedules: catalog.schedules.length, integrations: catalog.integrations.length }, 'Domain catalog written');
139
139
  return catalog;
140
140
  }
@@ -22,7 +22,7 @@ export async function runBuild(options) {
22
22
  cliLogger.warn(w);
23
23
  }
24
24
  await mkdir(join(outFile, '..'), { recursive: true });
25
- await writeFile(outFile, JSON.stringify(registry, null, 2), 'utf8');
25
+ await writeFile(outFile, JSON.stringify(registry), 'utf8');
26
26
  cliLogger.info({ outFile, apis: registry.apis.length, events: registry.events.length }, 'Registry written');
27
27
  // Discover all sibling registries and emit aggregated types
28
28
  const tibDir = join(process.cwd(), '.tib');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mettlecast/domain-cli",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -238,7 +238,7 @@ export async function runBuildCatalog(tibDir?: string): Promise<DomainCatalog> {
238
238
  const mcDir = join(process.cwd(), '.mc');
239
239
  await mkdir(mcDir, { recursive: true });
240
240
  const outPath = join(mcDir, 'domain-registry.json');
241
- await writeFile(outPath, JSON.stringify(catalog, null, 2), 'utf8');
241
+ await writeFile(outPath, JSON.stringify(catalog), 'utf8');
242
242
 
243
243
  cliLogger.info(
244
244
  { outPath, domains: catalog.domains.length, apis: catalog.apis.length, actions: catalog.actions.length, events: catalog.events.length, jobs: catalog.jobs.length, schedules: catalog.schedules.length, integrations: catalog.integrations.length },
@@ -38,7 +38,7 @@ export async function runBuild(options: BuildOptions): Promise<string> {
38
38
  }
39
39
 
40
40
  await mkdir(join(outFile, '..'), { recursive: true });
41
- await writeFile(outFile, JSON.stringify(registry, null, 2), 'utf8');
41
+ await writeFile(outFile, JSON.stringify(registry), 'utf8');
42
42
 
43
43
  cliLogger.info({ outFile, apis: registry.apis.length, events: registry.events.length }, 'Registry written');
44
44