Commit 0909e0c
fix(build): write a trailing newline from the JSON generators (#1246)
The config sync job on v2 failed because `bun run config:env` rewrites
config/custom-environment-variables.json without a trailing newline, and the
pre-commit hook now runs Biome, which wants one. The committed file only had
that newline because Prettier used to add it on the way past, so nothing
noticed until Prettier went away.
Fixing it in the generators rather than teaching Biome to ignore the file:
these are text files and should end with a newline regardless of who is
checking them. The same bug was sitting in three other generators, including
the locales one, whose job also commits its output and would have failed the
same way the first time it ran.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 845eb7f commit 0909e0c
4 files changed
Lines changed: 5 additions & 4 deletions
File tree
- packages
- config/lib/scripts
- locales/lib
- masterfile/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments