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.
- package/dist/index.js +12 -1
- 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
|
|
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({
|