@easyfunnel/mcp 0.1.6 → 0.1.7
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -268,8 +268,16 @@ Next: After adding the script, I'll verify everything works with a test event.`
|
|
|
268
268
|
if (!content.includes(config.envVarName)) {
|
|
269
269
|
(0, import_fs.writeFileSync)(envPath, content.trimEnd() + "\n" + envLine + "\n");
|
|
270
270
|
envWritten = true;
|
|
271
|
+
} else if (!content.includes(envLine)) {
|
|
272
|
+
const updated = content.replace(
|
|
273
|
+
new RegExp(`^${config.envVarName}=.*$`, "m"),
|
|
274
|
+
envLine
|
|
275
|
+
);
|
|
276
|
+
(0, import_fs.writeFileSync)(envPath, updated);
|
|
277
|
+
envWritten = true;
|
|
278
|
+
steps.push(`[done] Updated ${config.envVarName} to new API key in ${config.envFile}`);
|
|
271
279
|
} else {
|
|
272
|
-
steps.push(`[skip] ${config.envVarName} already
|
|
280
|
+
steps.push(`[skip] ${config.envVarName} already set correctly in ${config.envFile}`);
|
|
273
281
|
}
|
|
274
282
|
} else {
|
|
275
283
|
(0, import_fs.writeFileSync)(envPath, envLine + "\n");
|