@cedarjs/cli 5.0.0-canary.2392 → 5.0.0-canary.2396

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/cfw.js CHANGED
@@ -34,7 +34,8 @@ try {
34
34
  execa.sync("yarn", [...command], {
35
35
  stdio: "inherit",
36
36
  cwd: absCfwPath,
37
- // @ts-expect-error - testUtils.d.ts augments ProcessEnv with REDWOOD_DISABLE_TELEMETRY
37
+ // @ts-expect-error - testUtils.d.ts augments ProcessEnv with
38
+ // CEDAR_DISABLE_TELEMETRY
38
39
  env: { CEDAR_CWD: projectPath }
39
40
  });
40
41
  } catch {
@@ -1,6 +1,6 @@
1
1
  import { terminalLink } from "termi-link";
2
2
  if (process.argv.slice(2).includes("api")) {
3
- process.env.REDWOOD_DISABLE_TELEMETRY = "1";
3
+ process.env.CEDAR_DISABLE_TELEMETRY = "1";
4
4
  }
5
5
  const command = "render <side>";
6
6
  const description = "Build, migrate, and serve command for Render deploy";
package/dist/index.js CHANGED
@@ -41,10 +41,10 @@ import { startTelemetry, shutdownTelemetry } from "./telemetry/index.js";
41
41
  let { cwd, telemetry, help, version } = Parser(hideBin(process.argv), {
42
42
  // Telemetry is enabled by default, but can be disabled in two ways
43
43
  // - by passing a `--telemetry false` option
44
- // - by setting a `REDWOOD_DISABLE_TELEMETRY` env var
44
+ // - by setting a `CEDAR_DISABLE_TELEMETRY` env var
45
45
  boolean: ["telemetry"],
46
46
  default: {
47
- telemetry: process.env.REDWOOD_DISABLE_TELEMETRY === void 0 || process.env.REDWOOD_DISABLE_TELEMETRY === ""
47
+ telemetry: (process.env.CEDAR_DISABLE_TELEMETRY === void 0 || process.env.CEDAR_DISABLE_TELEMETRY === "") && (process.env.REDWOOD_DISABLE_TELEMETRY === void 0 || process.env.REDWOOD_DISABLE_TELEMETRY === "")
48
48
  }
49
49
  });
50
50
  cwd ??= process.env.CEDAR_CWD;
@@ -7,10 +7,10 @@ import { getPaths } from "@cedarjs/project-config";
7
7
  import { getResources } from "./resource.js";
8
8
  async function main() {
9
9
  console.log(
10
- "You can disable telemetry by:\n - setting the 'REDWOOD_DISABLE_TELEMETRY' environment variable\n - passing the '--no-telemetry' flag when using the CLI"
10
+ "You can disable telemetry by:\n - setting the 'CEDAR_DISABLE_TELEMETRY' environment variable\n - passing the '--no-telemetry' flag when using the CLI"
11
11
  );
12
12
  console.log(
13
- "Information about Redwood telemetry can be found at:\n - https://telemetry.redwoodjs.com\n"
13
+ "Information about Cedar telemetry can be found at:\n - https://telemetry.redwoodjs.com\n"
14
14
  );
15
15
  const telemetryDir = path.join(getPaths().generated.base, "telemetry");
16
16
  fs.mkdirSync(telemetryDir, { recursive: true });
@@ -21,7 +21,7 @@ async function main() {
21
21
  const customResourceData = await getResources();
22
22
  console.timeEnd("Computed resource information");
23
23
  const resource = Resource.default().merge(new Resource(customResourceData));
24
- const url = process.env.REDWOOD_REDIRECT_TELEMETRY || "https://quark.quantumparticle.io/v1/traces";
24
+ const url = process.env.CEDAR_REDIRECT_TELEMETRY || process.env.REDWOOD_REDIRECT_TELEMETRY || "https://quark.quantumparticle.io/v1/traces";
25
25
  const traceExporter = new OTLPTraceExporter({
26
26
  url
27
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "5.0.0-canary.2392",
3
+ "version": "5.0.0-canary.2396",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,17 +33,17 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.3",
35
35
  "@babel/preset-typescript": "7.28.5",
36
- "@cedarjs/api-server": "5.0.0-canary.2392",
37
- "@cedarjs/cli-helpers": "5.0.0-canary.2392",
38
- "@cedarjs/fastify-web": "5.0.0-canary.2392",
39
- "@cedarjs/internal": "5.0.0-canary.2392",
40
- "@cedarjs/prerender": "5.0.0-canary.2392",
41
- "@cedarjs/project-config": "5.0.0-canary.2392",
42
- "@cedarjs/structure": "5.0.0-canary.2392",
43
- "@cedarjs/telemetry": "5.0.0-canary.2392",
44
- "@cedarjs/utils": "5.0.0-canary.2392",
45
- "@cedarjs/vite": "5.0.0-canary.2392",
46
- "@cedarjs/web-server": "5.0.0-canary.2392",
36
+ "@cedarjs/api-server": "5.0.0-canary.2396",
37
+ "@cedarjs/cli-helpers": "5.0.0-canary.2396",
38
+ "@cedarjs/fastify-web": "5.0.0-canary.2396",
39
+ "@cedarjs/internal": "5.0.0-canary.2396",
40
+ "@cedarjs/prerender": "5.0.0-canary.2396",
41
+ "@cedarjs/project-config": "5.0.0-canary.2396",
42
+ "@cedarjs/structure": "5.0.0-canary.2396",
43
+ "@cedarjs/telemetry": "5.0.0-canary.2396",
44
+ "@cedarjs/utils": "5.0.0-canary.2396",
45
+ "@cedarjs/vite": "5.0.0-canary.2396",
46
+ "@cedarjs/web-server": "5.0.0-canary.2396",
47
47
  "@listr2/prompt-adapter-enquirer": "4.2.1",
48
48
  "@opentelemetry/api": "1.9.0",
49
49
  "@opentelemetry/core": "1.30.1",