zarro 1.167.0 → 1.168.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.
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
debug(JSON.stringify(xml, null, 2));
|
|
13
13
|
const packageVersionPropGroup = xml.Project.PropertyGroup.filter((g) => !!g.PackageVersion)[0];
|
|
14
14
|
if (!packageVersionPropGroup) {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
// if we got in here, then something wants to increment
|
|
16
|
+
// the package version, but we can't unless the correct
|
|
17
|
+
// structure is found in the project
|
|
18
|
+
throw new ZarroError(`Unable to increment package version in '${file.path}': no PropertyGroup containing a PackageVersion node was found.`);
|
|
17
19
|
}
|
|
18
20
|
const node = packageVersionPropGroup.PackageVersion;
|
|
19
21
|
const newVersion = incrementVersion(node[0], env.resolveFlag("BETA")
|