@cedarjs/telemetry 1.0.0-canary.12728 → 1.0.0-canary.12729

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.
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,EAAE,EACd,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,iBAoB9B,CAAA;AAED,eAAO,MAAM,cAAc,GAAU,MAAM,MAAM,EAAE,EAAE,OAAO,GAAG,kBAM9D,CAAA;AAGD,eAAO,MAAM,mBAAmB,qBAM/B,CAAA"}
1
+ {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,EAAE,EACd,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,iBAoB9B,CAAA;AAED,eAAO,MAAM,cAAc,GAAU,MAAM,MAAM,EAAE,EAAE,OAAO,GAAG,kBAM9D,CAAA;AAGD,eAAO,MAAM,mBAAmB,qBAM/B,CAAA"}
package/dist/telemetry.js CHANGED
@@ -38,8 +38,9 @@ var import_os = __toESM(require("os"));
38
38
  var import_path = __toESM(require("path"));
39
39
  var import_project_config = require("@cedarjs/project-config");
40
40
  const spawnProcess = (...args) => {
41
- const execPath = import_os.default.type() === "Windows_NT" ? `"${process.execPath}"` : process.execPath;
42
- const spawnOptions = import_os.default.type() === "Windows_NT" ? {
41
+ const isWindows = import_os.default.type() === "Windows_NT";
42
+ const execPath = isWindows ? `"${process.execPath}"` : process.execPath;
43
+ const spawnOptions = isWindows ? {
43
44
  stdio: process.env.REDWOOD_VERBOSE_TELEMETRY ? ["ignore", "inherit", "inherit"] : "ignore",
44
45
  // The following options run the process in the background without a console window, even though they don't look like they would.
45
46
  // See https://github.com/nodejs/node/issues/21825#issuecomment-503766781 for information
@@ -51,16 +52,17 @@ const spawnProcess = (...args) => {
51
52
  detached: process.env.REDWOOD_VERBOSE_TELEMETRY ? false : true,
52
53
  windowsHide: true
53
54
  };
54
- (0, import_child_process.spawn)(
55
- execPath,
56
- [
57
- import_path.default.join(__dirname, "scripts", "invoke.js"),
58
- ...args,
59
- "--root",
60
- (0, import_project_config.getPaths)().base
61
- ],
62
- spawnOptions
63
- ).unref();
55
+ const scriptArgs = [
56
+ import_path.default.join(__dirname, "scripts", "invoke.js"),
57
+ ...args,
58
+ "--root",
59
+ (0, import_project_config.getPaths)().base
60
+ ];
61
+ if (isWindows) {
62
+ (0, import_child_process.spawn)([execPath, ...scriptArgs].join(" "), [], spawnOptions).unref();
63
+ } else {
64
+ (0, import_child_process.spawn)(process.execPath, scriptArgs, spawnOptions).unref();
65
+ }
64
66
  };
65
67
  const timedTelemetry = async (argv, options, func) => {
66
68
  if (process.env.REDWOOD_DISABLE_TELEMETRY) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/telemetry",
3
- "version": "1.0.0-canary.12728+3953ec3e6",
3
+ "version": "1.0.0-canary.12729+338020ede",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -21,8 +21,8 @@
21
21
  "test:watch": "vitest watch"
22
22
  },
23
23
  "dependencies": {
24
- "@cedarjs/project-config": "1.0.0-canary.12728",
25
- "@cedarjs/structure": "1.0.0-canary.12728",
24
+ "@cedarjs/project-config": "1.0.0-canary.12729",
25
+ "@cedarjs/structure": "1.0.0-canary.12729",
26
26
  "@whatwg-node/fetch": "0.9.21",
27
27
  "ci-info": "4.0.0",
28
28
  "envinfo": "7.14.0",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "3953ec3e6653502060786ab8ea1746bafa585bf2"
44
+ "gitHead": "338020ede5f5249d4126a6914f762c35ad1448f2"
45
45
  }