zarro 1.170.24 → 1.171.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.
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  console.log(chalk.yellow(d));
30
30
  }
31
31
  });
32
+ clearRunningScript();
32
33
  });
33
34
  });
34
35
  }
@@ -38,6 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
39
  .split(",")
39
40
  .includes(k);
40
41
  }
42
+ function clearRunningScript() {
43
+ process.env[scriptMarkerVar] = "";
44
+ }
41
45
  function storeRunningScript(k) {
42
46
  const existing = (process.env[scriptMarkerVar] || ""), update = !!existing
43
47
  ? `${existing},${k}`
@@ -727,9 +727,14 @@
727
727
  });
728
728
  env.register({
729
729
  name: "NUGET_PUSH_SOURCE",
730
- help: "Specifically: nuget source to push to. Will fall back on NUGET_SOURCE or first of NUGET_SOURCES.",
730
+ help: "Specify nuget source to push to. Will fall back on NUGET_SOURCE or first of NUGET_SOURCES.",
731
731
  default: env.resolve("NUGET_SOURCE")
732
732
  });
733
+ env.register({
734
+ name: "PACKAGE_REGISTRY",
735
+ help: "Specify npm source to push to. Will default to npmjs.com",
736
+ default: "nuget.org"
737
+ });
733
738
  debug("-- env registration complete --");
734
739
  };
735
740
  })();
@@ -48,6 +48,11 @@
48
48
  args.push("--otp");
49
49
  args.push(otp);
50
50
  }
51
+ const registry = env.resolve(env.PACKAGE_REGISTRY);
52
+ if (!!registry) {
53
+ args.push("--registry");
54
+ args.push(registry);
55
+ }
51
56
  await spawn("npm", args, {
52
57
  interactive: true
53
58
  });
@@ -48,9 +48,9 @@
48
48
  }
49
49
  const url = generateInterfaceUrlFor(ip, port), { open } = requireModule("open");
50
50
  await waitForUrlToBecomeAvailable(url);
51
- logInfo(`
52
- Opening the dev smtp interface in your browser (${url})
53
- To disable this behavior, set env variable ${env.DEV_SMTP_OPEN_INTERFACE}=0
51
+ logInfo(`
52
+ Opening the dev smtp interface in your browser (${url})
53
+ To disable this behavior, set env variable ${env.DEV_SMTP_OPEN_INTERFACE}=0
54
54
  `.trim());
55
55
  await open(url);
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.170.24",
3
+ "version": "1.171.0",
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"
package/types.d.ts CHANGED
@@ -446,6 +446,7 @@ declare global {
446
446
  "TAG" |
447
447
  "GIT_TAG" |
448
448
  "GIT_VERSION_INCREMENT_MESSAGE" |
449
+ "PACKAGE_REGISTRY" |
449
450
  string; // allow client-side extension, encourage usage of env.associate & env.register
450
451
 
451
452
  type NumericEnvVar =
@@ -641,6 +642,7 @@ declare global {
641
642
  TAG: StringEnvVar;
642
643
  GIT_TAG: StringEnvVar;
643
644
  GIT_VERSION_INCREMENT_MESSAGE: StringEnvVar;
645
+ PACKAGE_REGISTRY: StringEnvVar;
644
646
 
645
647
  ENABLE_NUGET_PARALLEL_PROCESSING: FlagEnvVar;
646
648
  BUILD_SHOW_INFO: FlagEnvVar;