zarro 1.176.0 → 1.176.2
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/gulp-tasks/generate-local-task.js +8 -8
- package/gulp-tasks/modules/dotnet-cli.js +5 -2
- package/gulp-tasks/modules/resolve-nuget.js +1 -1
- package/gulp-tasks/modules/shim-nuget.js +2 -2
- package/gulp-tasks/nuget-push.js +2 -2
- package/gulp-tasks/update-self.js +4 -4
- package/gulp-tasks/verify-up-to-date.js +3 -3
- package/package.json +1 -1
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
await writeTextFile(target, template.replace("%TASK_NAME%", taskName));
|
|
10
10
|
log.info(`generated new task file at: ${target}`);
|
|
11
11
|
});
|
|
12
|
-
const template = `
|
|
13
|
-
/// <reference path="../node_modules/zarro/types.d.ts" />
|
|
14
|
-
const
|
|
15
|
-
gulp = requireModule<Gulp>("gulp");
|
|
16
|
-
|
|
17
|
-
gulp.task(\`%TASK_NAME%\`, async () => {
|
|
18
|
-
|
|
19
|
-
});
|
|
12
|
+
const template = `
|
|
13
|
+
/// <reference path="../node_modules/zarro/types.d.ts" />
|
|
14
|
+
const
|
|
15
|
+
gulp = requireModule<Gulp>("gulp");
|
|
16
|
+
|
|
17
|
+
gulp.task(\`%TASK_NAME%\`, async () => {
|
|
18
|
+
|
|
19
|
+
});
|
|
20
20
|
`.trim();
|
|
21
21
|
})();
|
|
@@ -1009,11 +1009,14 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
1009
1009
|
}
|
|
1010
1010
|
continue;
|
|
1011
1011
|
}
|
|
1012
|
-
const s = toUpgrade.length === 1 ? "" : "s", message = `searching for ${toUpgrade.length} package${s} to upgrade in ${project}
|
|
1012
|
+
const s = toUpgrade.length === 1 ? "" : "s", message = `searching for ${toUpgrade.length} package${s} to upgrade in ${project}`, upgradeIds = toUpgrade.map(o => o.id);
|
|
1013
1013
|
const upstream = await ctx.exec(message, async () => {
|
|
1014
1014
|
var _a;
|
|
1015
|
-
return await searchForMultiplePackages(
|
|
1015
|
+
return await searchForMultiplePackages(upgradeIds, opts.source, (_a = opts.preRelease) !== null && _a !== void 0 ? _a : false);
|
|
1016
1016
|
});
|
|
1017
|
+
if (upstream.length === 0) {
|
|
1018
|
+
log.warn(`No results found for packages at ${opts.source} (preRelease: ${!!opts.preRelease})\n- ${upgradeIds.join("\n- ")}`);
|
|
1019
|
+
}
|
|
1017
1020
|
for (const pkg of upstream) {
|
|
1018
1021
|
const projectMatch = toUpgrade.find(o => o.id.toLowerCase() === pkg.id.toLowerCase());
|
|
1019
1022
|
if (!projectMatch) {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
throw new ZarroError("MONO is required to run nuget restore on this platform");
|
|
100
100
|
}
|
|
101
101
|
const baseFolder = findNpmBase();
|
|
102
|
-
const script = `#!/bin/sh
|
|
102
|
+
const script = `#!/bin/sh
|
|
103
103
|
mono ${path.resolve(nugetPath)} $@`;
|
|
104
104
|
const scriptPath = path.join(baseFolder, "node_modules", ".bin", "mono-nuget");
|
|
105
105
|
writeFileSync(scriptPath, script, { encoding: "utf-8" });
|
package/gulp-tasks/nuget-push.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(function () {
|
|
3
3
|
gulp.task("nuget-push", "Pushes the latest versions of packages in the package build dir", async () => {
|
|
4
|
-
const debug = requireModule("debug")(__filename), path = require("path"), nugetPush = requireModule("nuget-push"), { ls, FsEntities } = require("yafs"), env = requireModule("env"), folder = env.resolve(env.PACK_TARGET_FOLDER), versionRe = /^(?<id>[A-Za-z\.]+)\.(?<version>\d\.\d\.\d)(-(?<tag>.*))?\.nupkg$/, packages = await ls(folder, {
|
|
4
|
+
const { ctx } = require("exec-step"), debug = requireModule("debug")(__filename), path = require("path"), nugetPush = requireModule("nuget-push"), { ls, FsEntities } = require("yafs"), env = requireModule("env"), folder = env.resolve(env.PACK_TARGET_FOLDER), versionRe = /^(?<id>[A-Za-z\.]+)\.(?<version>\d\.\d\.\d)(-(?<tag>.*))?\.nupkg$/, packages = await ls(folder, {
|
|
5
5
|
recurse: false,
|
|
6
6
|
entities: FsEntities.files,
|
|
7
7
|
match: versionRe
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
for (const file of toPush) {
|
|
31
|
-
await nugetPush(path.join(folder, file));
|
|
31
|
+
await ctx.exec(`⬆️ pushing ${file}`, async () => await nugetPush(path.join(folder, file)));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
})();
|
|
@@ -55,10 +55,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
55
55
|
this.emit("end");
|
|
56
56
|
}
|
|
57
57
|
catch (err) {
|
|
58
|
-
console.error(chalk.redBright(`
|
|
59
|
-
==================================================
|
|
60
|
-
| WARNING: Unable to update zarro, error(s) follow |
|
|
61
|
-
==================================================
|
|
58
|
+
console.error(chalk.redBright(`
|
|
59
|
+
==================================================
|
|
60
|
+
| WARNING: Unable to update zarro, error(s) follow |
|
|
61
|
+
==================================================
|
|
62
62
|
`));
|
|
63
63
|
this.emit("error", err);
|
|
64
64
|
}
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
const e = ex;
|
|
44
44
|
const msg = e.message || e;
|
|
45
45
|
if (msg === "operation timed out") {
|
|
46
|
-
log.error(chalk.redBright(`fetch operation timed out:
|
|
47
|
-
- check that the current account can fetch from all remotes
|
|
48
|
-
- optionally disable fetch with SKIP_FETCH_ON_VERIFY=1
|
|
46
|
+
log.error(chalk.redBright(`fetch operation timed out:
|
|
47
|
+
- check that the current account can fetch from all remotes
|
|
48
|
+
- optionally disable fetch with SKIP_FETCH_ON_VERIFY=1
|
|
49
49
|
- optionally increase GIT_FETCH_TIMEOUT from current value: ${timeout}`));
|
|
50
50
|
}
|
|
51
51
|
}
|