zarro 1.145.2 → 1.145.6
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/LICENSE
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Copyright (c) 2013, Davyd McColl. All rights reserved.
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
-
|
|
5
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
7
|
-
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
8
|
-
|
|
9
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10
|
-
|
|
1
|
+
Copyright (c) 2013, Davyd McColl. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
7
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
8
|
+
|
|
9
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10
|
+
|
|
@@ -292,6 +292,10 @@
|
|
|
292
292
|
if (fileExistsSync(name)) {
|
|
293
293
|
return (readTextFileSync(name) || "").trim();
|
|
294
294
|
}
|
|
295
|
+
else {
|
|
296
|
+
const { lsSync } = require("yafs");
|
|
297
|
+
const files = lsSync(process.cwd());
|
|
298
|
+
}
|
|
295
299
|
}
|
|
296
300
|
function resolveInternal(name, ignoreDefault, overrideDefault) {
|
|
297
301
|
if (Array.isArray(name)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(function () {
|
|
3
|
-
const env = requireModule("env"), gutil = requireModule("gulp-util"), debug = requireModule("debug")(__filename), editXml = require("gulp-edit-xml"), incrementVersion = requireModule("
|
|
3
|
+
const env = requireModule("env"), gutil = requireModule("gulp-util"), debug = requireModule("debug")(__filename), editXml = require("gulp-edit-xml"), incrementVersion = requireModule("increment-version"), ZarroError = requireModule("zarro-error"), xmlOpts = {
|
|
4
4
|
builderOptions: {
|
|
5
5
|
renderOpts: {
|
|
6
6
|
pretty: true
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
return xml;
|
|
17
17
|
}
|
|
18
18
|
const node = packageVersionPropGroup.PackageVersion;
|
|
19
|
-
const newVersion = incrementVersion(node[0], env.
|
|
19
|
+
const newVersion = incrementVersion(node[0], env.resolveFlag("BETA")
|
|
20
|
+
? env.resolve("VERSION_INCREMENT_STRATEGY")
|
|
21
|
+
: "prerelease", env.resolveFlag("VERSION_INCREMENT_ZERO"), env.resolveNumber("PACK_INCREMENT_VERSION_BY"));
|
|
20
22
|
node[0] = newVersion;
|
|
21
23
|
let packageIdPropGroup = xml.Project.PropertyGroup.filter((g) => !!g.PackageId)[0];
|
|
22
24
|
let packageName = "(unknown)";
|
|
@@ -65,7 +67,9 @@
|
|
|
65
67
|
}
|
|
66
68
|
async function incrementPackageVersionInNuspec(xml) {
|
|
67
69
|
const meta = xml.package.metadata[0], packageName = meta.id[0], node = meta.version, current = node[0];
|
|
68
|
-
const newVersion = incrementVersion(current, env.
|
|
70
|
+
const newVersion = incrementVersion(current, env.resolveFlag("BETA")
|
|
71
|
+
? "prerelease"
|
|
72
|
+
: env.resolve("VERSION_INCREMENT_STRATEGY"), env.resolveFlag("VERSION_INCREMENT_ZERO"), env.resolveNumber("PACK_INCREMENT_VERSION_BY"));
|
|
69
73
|
node[0] = newVersion;
|
|
70
74
|
gutil.log(gutil.colors.yellow(`${packageName}: package version incremented to: ${newVersion}`));
|
|
71
75
|
return xml;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -730,8 +730,7 @@ declare global {
|
|
|
730
730
|
version: string,
|
|
731
731
|
strategy: string,
|
|
732
732
|
zeroLowerOrder?: boolean,
|
|
733
|
-
incrementBy?: number
|
|
734
|
-
isBeta?: boolean
|
|
733
|
+
incrementBy?: number
|
|
735
734
|
) => string;
|
|
736
735
|
type ReadPackageVersion = (packageJsonPath?: string) => Promise<string | undefined>;
|
|
737
736
|
type ReadNuspecVersion = (pathToNuspec: string) => Promise<string | undefined>;
|