carlin 1.49.0 → 1.49.2
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 +19 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3669,9 +3669,13 @@ var destroy = /* @__PURE__ */ __name(async ({ stackName }) => {
|
|
|
3669
3669
|
const message = `Stack ${stackName} cannot be destroyed while TerminationProtection is enabled.`;
|
|
3670
3670
|
throw new Error(message);
|
|
3671
3671
|
}
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3672
|
+
try {
|
|
3673
|
+
await emptyStackBuckets({
|
|
3674
|
+
stackName
|
|
3675
|
+
});
|
|
3676
|
+
} catch (error) {
|
|
3677
|
+
log5.warn(logPrefix12, `Failed to empty buckets for stack ${stackName}: ${error?.message || error}. Proceeding with stack deletion.`);
|
|
3678
|
+
}
|
|
3675
3679
|
await deleteStack({
|
|
3676
3680
|
stackName
|
|
3677
3681
|
});
|
|
@@ -5219,7 +5223,18 @@ var generateEnv = /* @__PURE__ */ __name(async ({ defaultEnvironment, envFromDep
|
|
|
5219
5223
|
const deployOutputLines = envFromDeployOutputs && envFromDeployOutputs.length > 0 ? await readDeployOutputLines({
|
|
5220
5224
|
envFromDeployOutputs
|
|
5221
5225
|
}) : [];
|
|
5222
|
-
const
|
|
5226
|
+
const deployOutputKeys = new Set(deployOutputLines.map((line) => {
|
|
5227
|
+
return line.split("=")[0];
|
|
5228
|
+
}));
|
|
5229
|
+
const filteredEnvFile = envFile.split("\n").filter((line) => {
|
|
5230
|
+
const trimmed = line.trim();
|
|
5231
|
+
if (!trimmed || trimmed.startsWith("#")) {
|
|
5232
|
+
return true;
|
|
5233
|
+
}
|
|
5234
|
+
const key = trimmed.split("=")[0].trim();
|
|
5235
|
+
return !deployOutputKeys.has(key);
|
|
5236
|
+
}).join("\n");
|
|
5237
|
+
const content = deployOutputLines.length > 0 ? `${filteredEnvFile}
|
|
5223
5238
|
${deployOutputLines.join("\n")}
|
|
5224
5239
|
` : envFile;
|
|
5225
5240
|
await writeEnvFile({
|