openxiangda 1.0.183 → 1.0.184
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/lib/cli.js +2 -2
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -12894,7 +12894,7 @@ function saveRuntimeReleaseState(target, release) {
|
|
|
12894
12894
|
updatedAt: new Date().toISOString(),
|
|
12895
12895
|
};
|
|
12896
12896
|
target.bound.updatedAt = new Date().toISOString();
|
|
12897
|
-
if (target.state.profiles?.[target.profileName]) {
|
|
12897
|
+
if (!target.targetName && target.state.profiles?.[target.profileName]) {
|
|
12898
12898
|
target.state.profiles[target.profileName] = target.bound;
|
|
12899
12899
|
}
|
|
12900
12900
|
saveProjectState(target.state);
|
|
@@ -21171,7 +21171,7 @@ function removeStateResource(target, kind, code) {
|
|
|
21171
21171
|
if (!bucket || !target.bound.resources?.[bucket]?.[code]) return;
|
|
21172
21172
|
delete target.bound.resources[bucket][code];
|
|
21173
21173
|
target.bound.updatedAt = new Date().toISOString();
|
|
21174
|
-
if (target.state.profiles?.[target.profileName]) {
|
|
21174
|
+
if (!target.targetName && target.state.profiles?.[target.profileName]) {
|
|
21175
21175
|
target.state.profiles[target.profileName] = target.bound;
|
|
21176
21176
|
}
|
|
21177
21177
|
saveProjectState(target.state);
|