mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-07 02:55:24 +00:00
chore: tier map for plugins that are not pinned yet
This commit is contained in:
1 parent
950e5398c9
commit
76d41a2cbb
6 files changed
+179
-12
No files matched your search
@@ -4,7 +4,7 @@
|
||||
* re-released.
|
||||
*
|
||||
* node scripts/pin-bundled-plugins.cjs refresh the plugins already listed
|
||||
* node scripts/pin-bundled-plugins.cjs --all also add plugins new to the index that have a stable release (tier full)
|
||||
* node scripts/pin-bundled-plugins.cjs --all also add plugins new to the index that have a stable release (tier from docker/plugin-tiers.json, else full)
|
||||
* --core-version X skip releases whose engine.termix excludes X
|
||||
*
|
||||
* The release workflow runs it with --all and the version being released.
|
||||
@@ -14,6 +14,7 @@ const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const {
|
||||
loadBundledPlugins,
|
||||
loadPluginTiers,
|
||||
pinsFromIndex,
|
||||
} = require("./lib/bundled-plugins.cjs");
|
||||
|
||||
@@ -35,7 +36,13 @@ async function main() {
|
||||
|
||||
const current = loadBundledPlugins(root);
|
||||
const ids = all ? null : current.map((plugin) => plugin.id);
|
||||
const plugins = pinsFromIndex(index, ids, current, coreVersion);
|
||||
const plugins = pinsFromIndex(
|
||||
index,
|
||||
ids,
|
||||
current,
|
||||
coreVersion,
|
||||
loadPluginTiers(root),
|
||||
);
|
||||
fs.writeFileSync(configPath, `${JSON.stringify({ plugins }, null, 2)}\n`);
|
||||
console.log(
|
||||
`Pinned ${plugins.length} plugin(s) in docker/bundled-plugins.json`,
|
||||
|
||||
Reference in new issue
Block a user