carlin 1.49.0 → 1.49.1

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5219,7 +5219,18 @@ var generateEnv = /* @__PURE__ */ __name(async ({ defaultEnvironment, envFromDep
5219
5219
  const deployOutputLines = envFromDeployOutputs && envFromDeployOutputs.length > 0 ? await readDeployOutputLines({
5220
5220
  envFromDeployOutputs
5221
5221
  }) : [];
5222
- const content = deployOutputLines.length > 0 ? `${envFile}
5222
+ const deployOutputKeys = new Set(deployOutputLines.map((line) => {
5223
+ return line.split("=")[0];
5224
+ }));
5225
+ const filteredEnvFile = envFile.split("\n").filter((line) => {
5226
+ const trimmed = line.trim();
5227
+ if (!trimmed || trimmed.startsWith("#")) {
5228
+ return true;
5229
+ }
5230
+ const key = trimmed.split("=")[0].trim();
5231
+ return !deployOutputKeys.has(key);
5232
+ }).join("\n");
5233
+ const content = deployOutputLines.length > 0 ? `${filteredEnvFile}
5223
5234
  ${deployOutputLines.join("\n")}
5224
5235
  ` : envFile;
5225
5236
  await writeEnvFile({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlin",
3
- "version": "1.49.0",
3
+ "version": "1.49.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Pedro Arantes <arantespp@gmail.com> (https://twitter.com/arantespp)",