fix: format bundled plugin pins with prettier

This commit is contained in:
LukeGus committed 2026-11-06 20:45:52 -06:00
1 parent f3e0c0ebc2
commit 17e57c9981
2 files changed
+8 -4

No files matched your search

+7 -1
View File
@@ -43,7 +43,13 @@ async function main() {
coreVersion,
loadPluginTiers(root),
);
fs.writeFileSync(configPath, `${JSON.stringify({ plugins }, null, 2)}\n`);
// Format like prettier so lint stays green after the release job pins
const prettier = require("prettier");
const text = await prettier.format(JSON.stringify({ plugins }, null, 2), {
...(await prettier.resolveConfig(configPath)),
filepath: configPath,
});
fs.writeFileSync(configPath, text);
console.log(
`Pinned ${plugins.length} plugin(s) in docker/bundled-plugins.json`,
);