@celonis/content-cli 0.4.10 → 0.4.11
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/package.json
CHANGED
|
@@ -91,13 +91,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
91
91
|
if (!overwrite) {
|
|
92
92
|
const allTargetPackages = yield package_api_1.packageApi.findAllPackages();
|
|
93
93
|
const manifestNodeKeys = manifestNodes.map(node => node.packageKey);
|
|
94
|
-
allTargetPackages
|
|
95
|
-
.filter(node => manifestNodeKeys.includes(node.key))
|
|
96
|
-
.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
}
|
|
94
|
+
const packagesWithDraftChanges = allTargetPackages
|
|
95
|
+
.filter(node => manifestNodeKeys.includes(node.key) && node.workingDraftId !== node.activatedDraftId)
|
|
96
|
+
.map(node => node.key)
|
|
97
|
+
.join(", ");
|
|
98
|
+
if (!!packagesWithDraftChanges) {
|
|
99
|
+
throw new logger_1.FatalError(`Failed to import. Cannot overwrite packages with key(s) ${packagesWithDraftChanges}`);
|
|
100
|
+
}
|
|
101
101
|
}
|
|
102
102
|
let dmTargetIdsBySourceIds = new Map();
|
|
103
103
|
if (dataModelMappingsFilePath) {
|