@terraforge/core 0.0.35 → 0.0.36
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.mjs +6 -14
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -915,16 +915,12 @@ const deployApp = async (app, opt) => {
|
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
for (const [urn, stackState] of entries(appState.stacks)) {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
if (nodeState.tag === "resource") await queue(() => deleteResource(appState.idempotentToken, urn$1, nodeState, opt));
|
|
925
|
-
delete stackState.nodes[urn$1];
|
|
926
|
-
});
|
|
927
|
-
}
|
|
918
|
+
for (const [urn, stackState] of entries(appState.stacks)) if (!app.stacks.find((stack) => {
|
|
919
|
+
return stack.urn === urn;
|
|
920
|
+
})) for (const [urn$1, nodeState] of entries(stackState.nodes)) graph.add(urn$1, dependentsOn(allNodes, urn$1), async () => {
|
|
921
|
+
if (nodeState.tag === "resource") await queue(() => deleteResource(appState.idempotentToken, urn$1, nodeState, opt));
|
|
922
|
+
delete stackState.nodes[urn$1];
|
|
923
|
+
});
|
|
928
924
|
for (const stack of stacks) {
|
|
929
925
|
const stackState = stackStates.get(stack.urn);
|
|
930
926
|
for (const [urn, nodeState] of entries(stackState.nodes)) if (!stack.nodes.find((r) => getMeta(r).urn === urn)) graph.add(urn, dependentsOn(allNodes, urn), async () => {
|
|
@@ -985,10 +981,6 @@ const deployApp = async (app, opt) => {
|
|
|
985
981
|
else {
|
|
986
982
|
const inputChanged = !compareState(nodeState.input, input);
|
|
987
983
|
const hasDrift = !!nodeState.drifted;
|
|
988
|
-
console.log("DEPLOY_NODE", meta$1.urn);
|
|
989
|
-
console.log("STATE_NODE", nodeState);
|
|
990
|
-
console.log("INPUT_CHANGED", inputChanged);
|
|
991
|
-
console.log("HAS_DRIFT", hasDrift);
|
|
992
984
|
if (!inputChanged && !hasDrift) Object.assign(nodeState, partialNewResourceState);
|
|
993
985
|
else {
|
|
994
986
|
let newResourceState;
|