Commit 5b4fc83
fix(regen): produce canonical biome-formatted output on UPDATE path
The regen script was writing migration.json, ops.json, and head.json via
raw JSON.stringify without biome formatting, producing files that diverged
from the committed canonical format (inline short arrays, trailing newline).
Fix: pipe each touched JSON file through `biome format --stdin-file-path`
after writing. The stdin approach bypasses biome's files.includes exclusion
globs (which exclude migration.json/ops.json/end-contract.json from the
normal check pass) while still applying the project's formatter settings,
yielding byte-identical output.
Also reconcile the stale committed end-contract.d.ts for all three extension
packs (paradedb, pgvector, postgis): the previously-committed files had
`export type Models` at the bottom after `Namespaces`, while the current
src/contract.d.ts emitter places `Models` before `Contract`. Copying the
current src output makes committed == what syncEndContract produces, so the
forced-drift probe returns zero diff.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: wmadden-electric <286902546+wmadden-electric@users.noreply.github.com>1 parent 3acde5e commit 5b4fc83
4 files changed
Lines changed: 43 additions & 6 deletions
File tree
- packages/3-extensions
- paradedb/migrations/20260601T0000_install_pg_search_extension
- pgvector/migrations/20260601T0000_install_vector_extension
- postgis/migrations/20260601T0000_install_postgis_extension
- scripts
Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
packages/3-extensions/pgvector/migrations/20260601T0000_install_vector_extension/end-contract.d.ts
Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
packages/3-extensions/postgis/migrations/20260601T0000_install_postgis_extension/end-contract.d.ts
Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
63 | 88 | | |
64 | 89 | | |
65 | 90 | | |
| |||
152 | 177 | | |
153 | 178 | | |
154 | 179 | | |
155 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
156 | 183 | | |
157 | 184 | | |
158 | 185 | | |
159 | 186 | | |
160 | | - | |
| 187 | + | |
| 188 | + | |
161 | 189 | | |
162 | 190 | | |
163 | 191 | | |
| |||
167 | 195 | | |
168 | 196 | | |
169 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
170 | 201 | | |
171 | 202 | | |
172 | 203 | | |
| |||
225 | 256 | | |
226 | 257 | | |
227 | 258 | | |
| 259 | + | |
| 260 | + | |
228 | 261 | | |
229 | 262 | | |
| 263 | + | |
230 | 264 | | |
231 | 265 | | |
232 | 266 | | |
| |||
0 commit comments