@cedarjs/telemetry 1.0.0-canary.12728 → 1.0.0-canary.12730
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/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +14 -12
- package/package.json +4 -4
package/dist/telemetry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"
|
|
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
|
|
42
|
-
const
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
],
|
|
62
|
-
|
|
63
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.0-canary.12730+989a16511",
|
|
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.
|
|
25
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
24
|
+
"@cedarjs/project-config": "1.0.0-canary.12730",
|
|
25
|
+
"@cedarjs/structure": "1.0.0-canary.12730",
|
|
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": "
|
|
44
|
+
"gitHead": "989a16511067706d010c59ab65f9aadc2ab16276"
|
|
45
45
|
}
|