zarro 1.175.6 → 1.175.7

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" });
@@ -18,8 +18,8 @@
18
18
  if (fileExistsSync(shim)) {
19
19
  return shim;
20
20
  }
21
- writeTextFileSync(shim, `#!/bin/sh
22
- mono $(dirname $0)/nuget.exe $*
21
+ writeTextFileSync(shim, `#!/bin/sh
22
+ mono $(dirname $0)/nuget.exe $*
23
23
  `);
24
24
  chmodSync(shim, "777");
25
25
  return shim;
@@ -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
  }
@@ -85,8 +85,8 @@
85
85
  function makeRegex(s, strict) {
86
86
  const escaped = s.replace(".", "\\.");
87
87
  return strict
88
- ? new RegExp(`/^${escaped}$/i`)
89
- : new RegExp(`/${escaped}/i`);
88
+ ? new RegExp(`^${escaped}$`, `i`)
89
+ : new RegExp(`${escaped}`, `i`);
90
90
  }
91
91
  function createRegExpFrom(s) {
92
92
  if (s.endsWith('/')) {
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.175.6",
3
+ "version": "1.175.7",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "index.js"