@wispbit/local 1.0.64 → 1.0.66
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/cli-bundle.js +233 -229
- package/cli.js +27 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -23,5 +23,30 @@ process.emit = function (event, ...args) {
|
|
|
23
23
|
return originalEmit.apply(process, [event, ...args]);
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
//
|
|
27
|
-
|
|
26
|
+
// Initialize Sentry for Node.js (performance monitoring, no profiling)
|
|
27
|
+
// This runs before the main CLI to ensure all errors are captured
|
|
28
|
+
(async () => {
|
|
29
|
+
if (process.env.POWERLINT_SENTRY_DSN) {
|
|
30
|
+
const Sentry = await import("@sentry/node");
|
|
31
|
+
|
|
32
|
+
Sentry.init({
|
|
33
|
+
dsn: process.env.POWERLINT_SENTRY_DSN,
|
|
34
|
+
environment: "production",
|
|
35
|
+
sendDefaultPii: true,
|
|
36
|
+
tracesSampleRate: 1.0,
|
|
37
|
+
// No profiling integration
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Set CLI context for better error tracking
|
|
41
|
+
// Note: getCurrentVersion is in the bundle, we'll set basic context here
|
|
42
|
+
Sentry.setContext("cli", {
|
|
43
|
+
platform: process.platform,
|
|
44
|
+
arch: process.arch,
|
|
45
|
+
runtime: "node",
|
|
46
|
+
nodeVersion: process.version,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Use the file extension to help the module resolver find the file
|
|
51
|
+
await import("./cli-bundle.js");
|
|
52
|
+
})().catch(console.error);
|