zarro 1.175.7 → 1.176.1
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.
|
@@ -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
|
})();
|
|
@@ -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
|
}
|