@mdfriday/foundry 26.3.16 → 26.3.17
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/cli.js
CHANGED
|
@@ -1151,6 +1151,19 @@ var init_project = __esm({
|
|
|
1151
1151
|
this.setNestedValue(this.config, key2, value);
|
|
1152
1152
|
log2.debug(`Project config updated: ${key2}`, { projectName: this.metadata.name });
|
|
1153
1153
|
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Set entire configuration object (replaces current config)
|
|
1156
|
+
*
|
|
1157
|
+
* This method replaces the entire configuration with the provided object.
|
|
1158
|
+
* Useful for bulk updates to avoid race conditions from multiple writes.
|
|
1159
|
+
*/
|
|
1160
|
+
setConfig(config) {
|
|
1161
|
+
if (this.config === null) {
|
|
1162
|
+
throw new Error("Configuration not loaded. Call loadConfig() first.");
|
|
1163
|
+
}
|
|
1164
|
+
this.config = config;
|
|
1165
|
+
log2.debug(`Project config replaced entirely`, { projectName: this.metadata.name });
|
|
1166
|
+
}
|
|
1154
1167
|
/**
|
|
1155
1168
|
* Unset configuration value (supports nested keys with dot notation)
|
|
1156
1169
|
*/
|
|
@@ -55146,7 +55159,7 @@ For more information, visit: https://help.mdfriday.com
|
|
|
55146
55159
|
* Show version
|
|
55147
55160
|
*/
|
|
55148
55161
|
showVersion() {
|
|
55149
|
-
const version = "26.3.
|
|
55162
|
+
const version = "26.3.17";
|
|
55150
55163
|
return {
|
|
55151
55164
|
success: true,
|
|
55152
55165
|
message: `MDFriday CLI v${version}`
|