Skip to content

Commit b9f9715

Browse files
committed
chore: mship contract batch-format tolerates the biome ignore list
Note for regeneration during coexistence: the sync scripts' default source path (../copilot) is stale on this machine layout and fails loudly — that is currently CORRECT behavior, because the worker-era Go tree in ../mothership is frozen behind the Go service's own staging contracts; regenerating the catalog/trace files from it silently downgrades them. Regenerate a specific contract with an explicit --input when the change originates in the revamp (as mothership-stream-v1 did for execName). Claude-Session: https://claude.ai/code/session_01CgaxNAaeD3taGdghbXn17w
1 parent 1225250 commit b9f9715

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

scripts/generate-mship-contracts.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,25 @@ function runGenerators(outputOverride?: string): void {
6161
}
6262

6363
function formatGenerated(dir: string): void {
64+
// biome.json excludes the generated dir, and `biome check` on excluded paths
65+
// exits nonzero with "No files were processed" — each sync script already
66+
// formats its own output through a neutral stdin path, so this batch pass is
67+
// a per-file re-check that must not consult the ignore list.
6468
const files = readdirNoThrow(dir).filter((f) => !FORMAT_EXCLUDE.has(f) && f.endsWith('.ts'))
6569
if (files.length === 0) return
6670
const paths = files.map((f) => join(dir, f))
67-
run(['bunx', 'biome', 'check', '--write', ...paths], ROOT)
71+
run(
72+
[
73+
'bunx',
74+
'biome',
75+
'check',
76+
'--write',
77+
'--files-ignore-unknown=true',
78+
...paths,
79+
'--no-errors-on-unmatched',
80+
],
81+
ROOT
82+
)
6883
}
6984

7085
function readdirNoThrow(dir: string): string[] {

0 commit comments

Comments
 (0)