We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 404da85 commit 4b82ee5Copy full SHA for 4b82ee5
1 file changed
scripts/release.mjs
@@ -33,4 +33,17 @@ if (pkg.scripts?.['sync:check']) {
33
run(pnpm, ['sync:check']);
34
}
35
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
49
run(pnpm, ['version', level]);
0 commit comments