@go-to-k/cdkd 0.89.0 → 0.91.0
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 +25 -4
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.91.0.tgz +0 -0
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.89.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -70139,7 +70139,7 @@ async function loadStateForStack(stackName, synthRegion, opts) {
|
|
|
70139
70139
|
logger.debug(`${prefix}: loaded state for ${stackName} (${targetRegion})`);
|
|
70140
70140
|
return { state: stateData.state, region: targetRegion };
|
|
70141
70141
|
} finally {
|
|
70142
|
-
|
|
70142
|
+
resetAwsClients();
|
|
70143
70143
|
}
|
|
70144
70144
|
}
|
|
70145
70145
|
|
|
@@ -78108,10 +78108,31 @@ function buildDependencyGraph(containers) {
|
|
|
78108
78108
|
return g;
|
|
78109
78109
|
}
|
|
78110
78110
|
function topoSort(g, containers) {
|
|
78111
|
-
const
|
|
78111
|
+
const depth = /* @__PURE__ */ new Map();
|
|
78112
|
+
const computeDepth = (name) => {
|
|
78113
|
+
const cached = depth.get(name);
|
|
78114
|
+
if (cached !== void 0)
|
|
78115
|
+
return cached;
|
|
78116
|
+
let max = -1;
|
|
78117
|
+
const successors = g.successors(name) ?? [];
|
|
78118
|
+
for (const s of successors) {
|
|
78119
|
+
const d = computeDepth(s);
|
|
78120
|
+
if (d > max)
|
|
78121
|
+
max = d;
|
|
78122
|
+
}
|
|
78123
|
+
const result = max + 1;
|
|
78124
|
+
depth.set(name, result);
|
|
78125
|
+
return result;
|
|
78126
|
+
};
|
|
78127
|
+
for (const node of g.nodes())
|
|
78128
|
+
computeDepth(node);
|
|
78112
78129
|
const byPosition = /* @__PURE__ */ new Map();
|
|
78113
78130
|
containers.forEach((c, idx) => byPosition.set(c.name, idx));
|
|
78114
|
-
return
|
|
78131
|
+
return containers.map((c) => c.name).filter((n) => depth.has(n)).sort((a, b) => {
|
|
78132
|
+
const da = depth.get(a);
|
|
78133
|
+
const db = depth.get(b);
|
|
78134
|
+
if (da !== db)
|
|
78135
|
+
return da - db;
|
|
78115
78136
|
return (byPosition.get(a) ?? 0) - (byPosition.get(b) ?? 0);
|
|
78116
78137
|
});
|
|
78117
78138
|
}
|
|
@@ -80243,7 +80264,7 @@ function reorderArgs(argv) {
|
|
|
80243
80264
|
}
|
|
80244
80265
|
async function main() {
|
|
80245
80266
|
const program = new Command18();
|
|
80246
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
80267
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.91.0");
|
|
80247
80268
|
program.addCommand(createBootstrapCommand());
|
|
80248
80269
|
program.addCommand(createSynthCommand());
|
|
80249
80270
|
program.addCommand(createListCommand());
|