Skip to content

Commit 4b82ee5

Browse files
GoBeromsuclaude
andcommitted
chore: sync boiler-template (release.mjs manifest normalization)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 404da85 commit 4b82ee5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/release.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,17 @@ if (pkg.scripts?.['sync:check']) {
3333
run(pnpm, ['sync:check']);
3434
}
3535
run(pnpm, ['run', 'ci']);
36+
37+
// After CI (which runs build), manifest.json may be reformatted by esbuild.
38+
// Normalize to tab-indented format and auto-commit if dirty to unblock npm version.
39+
if (fs.existsSync('manifest.json')) {
40+
const raw = fs.readFileSync('manifest.json', 'utf8');
41+
const normalized = `${JSON.stringify(JSON.parse(raw), null, '\t')}\n`;
42+
if (raw !== normalized) {
43+
fs.writeFileSync('manifest.json', normalized);
44+
run('git', ['add', 'manifest.json']);
45+
run('git', ['commit', '-m', 'chore: normalize manifest.json formatting']);
46+
}
47+
}
48+
3649
run(pnpm, ['version', level]);

0 commit comments

Comments
 (0)