@rudderhq/cli 0.1.0-canary.0 → 0.1.0-canary.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.
package/dist/index.js CHANGED
@@ -9886,7 +9886,8 @@ import * as p13 from "@clack/prompts";
9886
9886
  import pc8 from "picocolors";
9887
9887
  var DEFAULT_DESKTOP_RELEASE_REPO = "Undertone0809/rudder";
9888
9888
  var STABLE_SEMVER_RE = /^[0-9]+\.[0-9]+\.[0-9]+$/;
9889
- var CLI_REGISTRY_LATEST_URL = "https://registry.npmjs.org/@rudder%2fcli/latest";
9889
+ var CANARY_SEMVER_RE = /^[0-9]+\.[0-9]+\.[0-9]+-canary\.[0-9]+$/;
9890
+ var CLI_REGISTRY_LATEST_URL = "https://registry.npmjs.org/@rudderhq%2fcli/latest";
9890
9891
  function resolveCurrentCliVersion(env = process.env) {
9891
9892
  const envPackageName = env.npm_package_name?.trim();
9892
9893
  const envPackageVersion = env.npm_package_version?.trim();
@@ -9946,12 +9947,11 @@ async function getCliUpdateNotice(currentVersion) {
9946
9947
  }
9947
9948
  function resolveDesktopReleaseTag(version) {
9948
9949
  if (!version || version === "latest") return "latest";
9949
- if (!STABLE_SEMVER_RE.test(version)) {
9950
- throw new Error(
9951
- `Desktop installer lookup requires a stable version like 0.1.0. Received ${version}.`
9952
- );
9953
- }
9954
- return `v${version}`;
9950
+ if (STABLE_SEMVER_RE.test(version)) return `v${version}`;
9951
+ if (CANARY_SEMVER_RE.test(version)) return `canary/v${version}`;
9952
+ throw new Error(
9953
+ `Desktop installer lookup requires a release version like 0.1.0 or 0.1.0-canary.0. Received ${version}.`
9954
+ );
9955
9955
  }
9956
9956
  function resolveDesktopAssetTarget(platform = process.platform, arch = process.arch) {
9957
9957
  const normalizedArch = arch === "x64" || arch === "arm64" ? arch : null;
@@ -19168,7 +19168,7 @@ var DATA_DIR_OPTION_HELP = "Rudder data directory root (isolates state from ~/.r
19168
19168
  var LOCAL_ENV_OPTION_HELP = "Local environment profile (dev, prod_local, e2e)";
19169
19169
  function createProgram() {
19170
19170
  const program = new Command();
19171
- program.name("rudder").description("Rudder CLI \u2014 setup, diagnose, and configure your instance").version("0.1.0-canary.0");
19171
+ program.name("rudder").description("Rudder CLI \u2014 setup, diagnose, and configure your instance").version("0.1.0-canary.1");
19172
19172
  program.option("--local-env <name>", LOCAL_ENV_OPTION_HELP);
19173
19173
  program.hook("preAction", (_thisCommand, actionCommand) => {
19174
19174
  const options = actionCommand.optsWithGlobals();