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

+1 -3
View File
@@ -300,9 +300,7 @@
"onboarding": { "onboarding": {
"recommended": false, "recommended": false,
"consent": false, "consent": false,
"enabledByEnv": [ "enabledByEnv": ["OIDC_CLIENT_ID"]
"OIDC_CLIENT_ID"
]
} }
}, },
{ {
+7 -1
View File
@@ -43,7 +43,13 @@ async function main() {
coreVersion, coreVersion,
loadPluginTiers(root), 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( console.log(
`Pinned ${plugins.length} plugin(s) in docker/bundled-plugins.json`, `Pinned ${plugins.length} plugin(s) in docker/bundled-plugins.json`,
); );