@fuzdev/fuz_gitops 0.70.0 → 0.70.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"gitops_sync.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gitops_sync.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAgBtB,cAAc;AACd,eAAO,MAAM,IAAI;;;;;;kBAkBf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAmF3B,CAAC"}
1
+ {"version":3,"file":"gitops_sync.task.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gitops_sync.task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,IAAI,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAiBtB,cAAc;AACd,eAAO,MAAM,IAAI;;;;;;kBAkBf,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAqF3B,CAAC"}
@@ -7,6 +7,7 @@ import { print_path } from '@fuzdev/gro/paths.js';
7
7
  import { load_from_env } from '@fuzdev/gro/env.js';
8
8
  import { package_json_load } from '@fuzdev/gro/package_json.js';
9
9
  import { existsSync } from 'node:fs';
10
+ import { compactReplacer } from 'svelte-docinfo';
10
11
  import { fetch_repo_data } from './fetch_repo_data.js';
11
12
  import { create_fs_fetch_value_cache } from './fs_fetch_value_cache.js';
12
13
  import { get_gitops_ready } from './gitops_task_helpers.js';
@@ -65,7 +66,9 @@ export const task = {
65
66
  : '@fuzdev/fuz_gitops/repo.svelte.js';
66
67
  log.info(`generating ${outfile_json} and ${outfile_ts}`);
67
68
  // Generate repos.json with the raw data
68
- const json_contents = await format_file(JSON.stringify(repos_json), { filepath: outfile_json });
69
+ const json_contents = await format_file(JSON.stringify(repos_json, compactReplacer), {
70
+ filepath: outfile_json,
71
+ });
69
72
  const existing_json = existsSync(outfile_json) ? await readFile(outfile_json, 'utf8') : '';
70
73
  const json_changed = existing_json !== json_contents;
71
74
  if (json_changed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_gitops",
3
- "version": "0.70.0",
3
+ "version": "0.70.1",
4
4
  "description": "a tool for managing many repos",
5
5
  "glyph": "🪄",
6
6
  "logo": "logo.svg",
@@ -7,6 +7,7 @@ import {print_path} from '@fuzdev/gro/paths.js';
7
7
  import {load_from_env} from '@fuzdev/gro/env.js';
8
8
  import {package_json_load} from '@fuzdev/gro/package_json.js';
9
9
  import {existsSync} from 'node:fs';
10
+ import {compactReplacer} from 'svelte-docinfo';
10
11
 
11
12
  import {fetch_repo_data} from './fetch_repo_data.js';
12
13
  import {create_fs_fetch_value_cache} from './fs_fetch_value_cache.js';
@@ -80,7 +81,9 @@ export const task: Task<Args> = {
80
81
  log.info(`generating ${outfile_json} and ${outfile_ts}`);
81
82
 
82
83
  // Generate repos.json with the raw data
83
- const json_contents = await format_file(JSON.stringify(repos_json), {filepath: outfile_json});
84
+ const json_contents = await format_file(JSON.stringify(repos_json, compactReplacer), {
85
+ filepath: outfile_json,
86
+ });
84
87
  const existing_json = existsSync(outfile_json) ? await readFile(outfile_json, 'utf8') : '';
85
88
  const json_changed = existing_json !== json_contents;
86
89
  if (json_changed) {