mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-07 02:55:24 +00:00
fix: format bundled plugin pins with prettier
This commit is contained in:
1 parent
f3e0c0ebc2
commit
17e57c9981
2 files changed
+8
-4
No files matched your search
@@ -300,9 +300,7 @@
|
|||||||
"onboarding": {
|
"onboarding": {
|
||||||
"recommended": false,
|
"recommended": false,
|
||||||
"consent": false,
|
"consent": false,
|
||||||
"enabledByEnv": [
|
"enabledByEnv": ["OIDC_CLIENT_ID"]
|
||||||
"OIDC_CLIENT_ID"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user