@kvell007/embed-labs-cli 0.1.0-alpha.18 → 0.1.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2396,8 +2396,9 @@ async function upsertCodexPluginMarketplaceConfig(marketplacePath) {
|
|
|
2396
2396
|
catch {
|
|
2397
2397
|
text = "";
|
|
2398
2398
|
}
|
|
2399
|
-
|
|
2400
|
-
|
|
2399
|
+
const original = text;
|
|
2400
|
+
const cleaned = removeLegacyCodexConfigTables(text).text;
|
|
2401
|
+
let updated = upsertTomlTableKeys(cleaned, `marketplaces.${CODEX_MARKETPLACE_NAME}`, {
|
|
2401
2402
|
source_type: tomlString("local"),
|
|
2402
2403
|
source: tomlString(marketplacePath),
|
|
2403
2404
|
last_updated: tomlString(new Date().toISOString().replace(/\.\d{3}Z$/, "Z"))
|
|
@@ -2405,7 +2406,7 @@ async function upsertCodexPluginMarketplaceConfig(marketplacePath) {
|
|
|
2405
2406
|
updated = upsertTomlTableKeys(updated, `plugins."${CODEX_PLUGIN_NAME}@${CODEX_MARKETPLACE_NAME}"`, {
|
|
2406
2407
|
enabled: "true"
|
|
2407
2408
|
});
|
|
2408
|
-
if (updated !==
|
|
2409
|
+
if (updated !== original) {
|
|
2409
2410
|
await writeFile(configPath, updated, "utf8");
|
|
2410
2411
|
}
|
|
2411
2412
|
return undefined;
|